Category: Firemonkey

click_action of push notification android firemonkey

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
Read More

Copy the contents of array or memory block to another specific type, using Delphi

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_1: Byte; Var_2: Byte; Var_N: Byte; end; Var aa: TMyType; vArr: TByte; begin 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;
Read More

Keep a user in a TEdit

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") { Beep(); Edit1->SetFocus(); } } It is in a simple form with 2 TEdits only. What I do wrong and how to do it right?
Read More

Firemonkey TFrame Align = Scale Bug?

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 end end 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' end object Button2: TButton Position.X = 144.000000000000000000 Position.Y = 144.000000000000000000 TabOrder = 1 Text = 'Button2' end object Button3: TButton Position.X = 240.000000000000000000 Position.Y = 256.000000000000000000 TabOrder = 2 Text = 'Button3' end end
Read More

Maps on Windows with Firemonkey

I would like to propose a satellite view on my windows application create with Firemonkey. The MapView component is only for mobile app, I try to use a webbrowser but I have a lot of problem with the website. TWebBrowser is not powerful enough for these website, not compatible with the new javascript. Any idea how I can do that ? Thanks
Read More

Error ITMS-90164 et ITMS-90046 when trying to upload my app via application loader

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 'Payload/myapp.app/myapp'" 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 ?
Read More

c++builder firemonkey Load a image url get ‘Loading bitmap failed’ error

I found this example and tried to load an image from my localhost: void __fastcall TForm1::Button1Click(TObject *Sender) { TMemoryStream *strm = new TMemoryStream; IdHTTP1->Get(L"http://192.168.15.10/server/ima.png", strm); strm->Position = 0; Image1->Bitmap->LoadFromStream(strm); } 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!
Read More

when deploying my iOS64 app, Why I have: myApp.dSYM not found. Skipping deployment

I m under delphi berlin, and when I compile and deploy in release mode my iOS 64 app, I receive in the log : C:\Program Files (x86)\Embarcadero\Studio\18.0\bin\CodeGear.Deployment.targets : warning : Local file "....\iOSDevice64\Release\myAPP.dSYM" not found. Skipping deployment. Any idea what goes wrong ? what the purpose of the dSYM ? how to generate it ? maybe I can remove it from the deployment ?
Read More

How can I obtain the dataset row for the selected item of FMX.ListView.TListView?

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.
Read More

How to display text and image (food recipes) like web based on mobile app with firemonkey delphi? [on hold]

I want to create an app to share recipes food like this website, but in mobile application. https://www.vietnamesefood.com.vn/vietnamese-recipes/vietnamese-food-recipes/fried-squid-with-butter-and-garlic-recipe-muc-chien-bo-toi.html 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
Read More