I'm having a problem that I can not solve. I need to control the click of a push notification triggered remotely using the firebase.
In firemonkey applications, you have a permission on the manifest to enable receiving notifications remotely even with the application closed (<service android: name = "com.embarcadero.gcm.notifications.GCMIntentService" />), but when I click, it only opens the application , I need to control what I show when the user clicks the notification.
At https://firebase.google.com/docs/cloud-messaging/http-server-ref?hl=en#device-group-managmement, there is a click_action tag, which I believe would be for it that I send in the notification parameters to the app understand what I need to do.
I hope you understood
I need to copy the contents of an array to a variable of another type, as in the example below, but I can not find a solution.
Note: I need this routine to work on Android with Delphi 10.
Does anyone know how to do this?
type TMyType = packed record
Var aa: TMyType;
vArr := [1, 2, 3];
// Copy vArr content to "aa" like this
aa := @vArr;
// aa.Var_1 = 1;
// aa.Var_2 = 2;
// aa.Var_N = 3;
I have to check a value of TEdit->Text when a user leaves it and return him to the TEdit, if the value is wrong. The code below works nice in a VCL but it doesn't work in a FMX. So it beeps but doesn't return.
void __fastcall TForm1::Edit1Exit(TObject *Sender)
if (Edit1->Text != "123")
It is in a simple form with 2 TEdits only. What I do wrong and how to do it right?
I have a doubt. I have created a Frame in firemonkey and added 2 buttons, then inside MainForm I added this Frame.
Frame.Align = Scale
In the MainForm the Object Frame.Align = Client
When I compile and resize the Form, the Frame does not scale.
Is this a normal question or a bug?
object Form1: TForm1
Left = 0
Top = 0
Caption = 'Form1'
ClientHeight = 481
ClientWidth = 627
FormFactor.Width = 320
FormFactor.Height = 480
FormFactor.Devices = [Desktop]
DesignerMasterStyle = 0
inline Frame21: TFrame2
Align = Scale
Position.Y = -3.000000000000000000
Size.Width = 887.000000000000000000
Size.Height = 653.000000000000000000
Size.PlatformDefault = False
object Frame2: TFrame2
Align = Scale
Size.Width = 526.000000000000000000
Size.Height = 395.000000000000000000
Size.PlatformDefault = False
object Button1: TButton
Position.X = 80.000000000000000000
Position.Y = 40.000000000000000000
TabOrder = 0
Text = 'Button1'
object Button2: TButton
Position.X = 144.000000000000000000
Position.Y = 144.000000000000000000
TabOrder = 1
Text = 'Button2'
object Button3: TButton
Position.X = 240.000000000000000000
Position.Y = 256.000000000000000000
TabOrder = 2
Text = 'Button3'
I would like to propose a satellite view on my windows application create with Firemonkey.
Any idea how I can do that ?
On MS Windows one can obtain a window handle by using:
How does one obtain a MacOS Window "id":
for example a function that accepts a window id:
CGWindowID windowID, // <------------------ here
When I try to upload the IPA of my app via application loader I receive this error :
ERROR ITMS-90164: "Invalid Code Signing Entitlements. The
entitlements in your app bundle signature do not match the ones that
are contained in the provisioning profile. According to the
provisioning profile, the bundle contains a key value that is not
allowed: '' for the key 'application-identifier' in
ERROR ITMS-90046: "Invalid Code Signing
Entitlements. Your application bundle's signature contains code
signing entitlements that are not supported on iOS. Specifically,
value '' for key 'application-identifier' in
'Payload/myapp.app/myapp' is not supported. This value should be a
string starting with your TEAMID, followed by a dot '.', followed by
the bundle identifier."
I m under delphi berlin and xcode 8.3.2 with paserver 9.0.2.03
Does Delphi berlin can still upload app to the app store ?
How can I detect the press of the "Done" button on the virtual keyboard in Delphi when using iOS? Button in the upper right corner that closed virtual keyboard.
I want to create a mobile app to share food recipes like this picture
there are more text and picture under each recipe.
I have do a research and don't know which control in Firemokey to display data like this.
Somebody master in firemonkey please help me on this.
I found this example and tried to load an image from my localhost:
void __fastcall TForm1::Button1Click(TObject *Sender)
TMemoryStream *strm = new TMemoryStream;
strm->Position = 0;
But I´m getting this error:
Project Project1.exe raised exception class EBitmapLoadingFailed with message 'Loading bitmap failed.'
The image (ima.png) is in the correct place, and it opens perfectly when I load it manually in a TImage in the MultiResBitmap options. And it opens perfectly when using Image1->Bitmap->LoadFromFile("c:\\server\\ima.png");
I tried to get other images from the Internet, but get the same error.
In fact, I need to load PNG and JPG files from my webserver (online) at runtime using Firemonkey on Android and iOS.
I'm using C++Builder 10.2.1 Tokyo, and would like a C++Builder example.
No Delphi please!
I need to show images and texts in a form, using FMX, in a project for android, it's like a memo, but with image and text .... which component is used for it?. Thanks
I m under delphi berlin, and when I compile and deploy in release mode my iOS 64 app, I receive in the log :
warning : Local file "....\iOSDevice64\Release\myAPP.dSYM" not found.
Any idea what goes wrong ? what the purpose of the dSYM ? how to generate it ? maybe I can remove it from the deployment ?
My question relates to the use of Firemonkey TListView in Delphi 10.2 Tokyo.
I have a FMX form with a ListView with ItemAppearance.ItemApearance = which allows me to add any number of TTextObjectAppearance items.
The TListView has LiveBindings to TFDQuery fields via a TBindSourceDB. All my fields display as I want them to in the ListView.
I do not wish to display the primary key from that query to the user but I do want to be able to receive the primary key once the user selects an item in the listview.
The goal is to be able to locate the row in the TFDQuery dataset that contains other columns of information required to generate the next screen.
I would much appreciate your advice. Thanks in advance.
I want to create an app to share recipes food like this website, but in mobile application.
Can someone help me to tell me how to do, how to organize database? how to display text and image so it look like the example page? which controls should I use?
Thanks a lot.example
I'm working on a project that convert a 2d grayscale bitmap to a 3d version(dark points are closer and brighten points are...); and then send it to pharlan SEP 3d printer. How can draw a list of points into 3d environment by delphi firemonkey?