

Anto90
Members-
Content Count
14 -
Joined
-
Last visited
Community Reputation
0 Neutral-
Thank you. This could be a issue with an apple policy distribution?
-
thank you. I set from FDPhysSQLiteDriverLink1 EngineLinkage slStatic i saw in delphi lib installation libsqlite.a is correct but i still having crash. There is some other configuration that i had to do? Thank you
-
hello, i want to use sqllite with my app. I use also fcm notification with kastri FCM.ShowBannerIfForeground := True; FCM.OnMessageReceived := FCMMessageReceivedHandler; FCM.OnStarted := FCMStartedHandler; FCM.OnTokenReceived := FCMTokenReceivedHandler; FCM.Start; I add the line above on form create ok it goes. I add datamodule with fdconnection and driver id sqllite the app on startup crash. I rem the fcm.start and app does not crash anymore. if i remove FireDAC.Phys.SQLite from uses of datamodule app does not crash Can be a correlation with fcm and sqllite ? In Android is ok. The form is not created at application startup. If i removed all uses related to sqlite from datamodule the app starts normally with fcm.start not rem. i use delphi 12.2 Thank you
-
I use delphi 12.2 patch 1. I test more and more but i cannot reproduce. I made a small test example for the permission request for the device location. I am currently working with android. The project uses scripgate and a web browser. Library that allows you to make calls between web browser and delphi code. I press the load button and the page with a link is loaded. Pressing this link calls a function that returns the gps coordinates of the device if the location is activated. Should the activation of the locator LocationSensor1.Active := True; be done exclusively in the permission request? If I try to execute LocationSensor1.Active := True; simply in the create form if I am using the app and suddenly the connection is lost I close it and reopen it the application does not open crashing. Is it correct to ask for permissions in this way and activating the sensor in the create form or formshow after requesting permissions? i attached the sample project and scripgate library to test. In kastri is there the way to detect the status of localization like connection status change? I would to like to detect the change of (Localization on/off) and then activate the TLocationSensor. Thank you Andrea TestProject.rar
-
Helo thank you. From google play console i get this detail: Tipo java.lang.RuntimeException Exception java.lang.RuntimeException: at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:4169) at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:4325) at android.app.servertransaction.LaunchActivityItem.execute (LaunchActivityItem.java:101) at android.app.servertransaction.TransactionExecutor.executeCallbacks (TransactionExecutor.java:135) at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:95) at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2574) at android.os.Handler.dispatchMessage (Handler.java:106) at android.os.Looper.loopOnce (Looper.java:226) at android.os.Looper.loop (Looper.java:313) at android.app.ActivityThread.main (ActivityThread.java:8762) at java.lang.reflect.Method.invoke at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:604) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1067) Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'android.app.Dialog com.embarcadero.firemonkey.dialogs.defaults.FMXDefaultStandardDialog.getRealDialog()' on a null object reference at com.embarcadero.firemonkey.dialogs.defaults.FMXDefaultDialogFragment.onCreate (FMXDefaultDialogFragment.java:20) at android.app.Fragment.performCreate (Fragment.java:2486) at android.app.FragmentManagerImpl.moveToState (FragmentManager.java:1261) at android.app.FragmentManagerImpl.moveFragmentToExpectedState (FragmentManager.java:1581) at android.app.FragmentManagerImpl.moveToState (FragmentManager.java:1642) at android.app.FragmentManagerImpl.dispatchMoveToState (FragmentManager.java:3052) at android.app.FragmentManagerImpl.dispatchCreate (FragmentManager.java:2999) at android.app.FragmentController.dispatchCreate (FragmentController.java:174) at android.app.Activity.onCreate (Activity.java:1700) at android.app.NativeActivity.onCreate (NativeActivity.java:180) at com.embarcadero.firemonkey.FMXNativeActivity.onCreate (FMXNativeActivity.java:139) at android.app.Activity.performCreate (Activity.java:8591) at android.app.Activity.performCreate (Activity.java:8570) at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1384) at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:4150) Andrea
-
FMX [ANDROID] FMXDefaultDialogFragment.onCreate App Crash FireMonkey RSP-23962 only for info this issues was resolved (Publicly reported bugs fixed in 10.4.2) but Google play console give me alert that this bus happens often. Thank you
-
Sorry i bad explain. I use kastri. the error come from Google play console. I use localization and the check internet connection. I saw that this error was in quality portal on resolved issues on 10.4.2 sydney I cant reproduce but i still understand. andrea
-
Hello, i have an android app and on google play store tell me that anrs are grows. the issue in particular that tell me is this com.embarcadero.firemonkey.dialogs.defaults.FMXDefaultDialogFragment.onCreate java.lang.NullPointerException In my app i use kastriFree. Someone has this issue? It seems related to show a dialogs... Thank you. Andrea
-
Ho Dave, thank you for response. i active the sensor in the formshow. I have also a twebbrowser in a form. But if you have internet io and then you have a slow internet signal o you turn off internet signal the app crash. The app use Also notification of kastri and firebase. The authorization is requested at runtime. thank you
-
hello, I have a strange behavior. When I active TLocationSensor like sensor.active = true When there is no internet connection the app crash and close. This is on IOS 18.2.1 and sdk 18.2.1 and the last Xcode and delphi 12.2. Someone has this issue? thank andrea
-
this is an example. i Call directly method on execute for testing... FFCMSender is object in thread... Thank you Andrea procedure TTimerThreadSpedisciMailingList.Execute(); begin SendPushNotificationNewVersion(FFCMSender,'testtoken','test','test'); end;
- 3 replies
-
- firebase
- push notifications
-
(and 1 more)
Tagged with:
-
Good morning, i now switch to send push notifications with firebase using the new method legacy with token with the example in kastri. I port the example in a thread and then implment the method. Can i use the example in a multi thread enviroment or some operation must be execute in main thread? I reported a small implementation of thread but sometime i get showmessage "Nothing to do ". Can someone help me? I attached an small example of my thread. Thank you Andrea Esempio.pas
- 3 replies
-
- firebase
- push notifications
-
(and 1 more)
Tagged with:
-
Interbase 2020 update 3 - high firedac network traffic
Anto90 replied to Anto90's topic in Databases
HI thank you for your response fiMeta in included in cache items. We do not use autocommit. we manage transaction. At end of each request me call commit. FetchOptions.Autofetchall is afAll. Thank you. -
We have a website developed with intraweb technology in delphi. (In the period of maximum work we get to have about 2000 active sessions at the same time) (Database weight 15gb) As support we use interbase 2020 update 3 (on a separate server from the one where the webserver runs) and firedac connection technology with delphi 11.2. (The webserver is IIS) What we notice is that as the number of connected users increases, the ibserver network traffic increases a lot up to 5gb/s, congesting the entire network and significantly reducing system performance. (Making navigation between pages very slow) Database connections are made stateless, each request does its job and the db connection is closed when finished. Downgrading to delphi 11.0 the problem seems to decrease traffic, however slow down system performance. However the traffic is not justified by the amount of data exchanged. Fdconnection of firedac is set as protocol tcp and ip the destination server of the database. The two servers are connected in a 10 gigabit LAN. Each session as defined in the intraweb has its own dedicated thread where the datamodule is created with the components for connecting to the database and executing queries) As suggested by embarcadero we increased database pages to 8192 and buffers 200000. How to handle requests to the db in a stateless way (connection and disconnection can significantly degrade system performance?) In my datamodule there are fdconnection with tcp/ip protocol and port 3050 and then with fdquery fd command to execute the queries. What optimal settings for fdconnection can be used.? Does anyone have any experience with this yet? Thank you Andrea Antonini