Vanar
Members-
Content Count
49 -
Joined
-
Last visited
Everything posted by Vanar
-
I didn't express myself quite correctly. Large files are downloaded, but take too long; more often the download is interrupted, but the application continues to work - it does not crash Tried it on Demos\FilesSelector from Kastri-master In any case, compression is preferable for my purposes
-
How to play .caf audio file created under iOS on Android platform (Delphi 12)?
Vanar posted a topic in FMX
My application, written for iOS, creates caf files and uploads them to the server. My other application, written for Android, would like to play these files, but cannot. Apparently different formats. Android application that creates caf files, successfully plays them The problem is not new: https://stackoverflow.com/questions/34546248/how-to-play-caf-audio-file-on-android-platform-firemonkey But 8 years have passed. I think there are solutions. I wish my Android app could play caf files from iOS.- 2 replies
-
- firemonkey
- ios
-
(and 2 more)
Tagged with:
-
How to play .caf audio file created under iOS on Android platform (Delphi 12)?
Vanar replied to Vanar's topic in FMX
Thank you! I'll do so Topic closed- 2 replies
-
- firemonkey
- ios
-
(and 2 more)
Tagged with:
-
Delphi 12: How to Select an Existing Video from Photos in the FireMonkey iOS App?
Vanar posted a topic in FMX
Tell me, is there an implementation of video selection for iOS? For example, like selecting images by ActionTakePhotoFromLibrary or TOpenDialog.- 6 replies
-
- delphi 12
- firemonkey
-
(and 1 more)
Tagged with:
-
Delphi 12: How to Select an Existing Video from Photos in the FireMonkey iOS App?
Vanar replied to Vanar's topic in FMX
Good afternoon! In the example https://github.com/DelphiWorlds/Kastri/tree/master/Demos/FilesSelector You can’t catch the choice of video file! As I said, I need to select videos for iOS constructor TForm1.Create(AOwner: TComponent); begin FSelector := TFilesSelector.Create; FSelector.Title := 'Select a file'; FSelector.OnComplete := SelectorCompleteHandler; End; I do this: FSelector.FileKinds := [TFileKind.Photo]; // Only in this case do I see the video in the list FSelector.Select(TSelectionMode.Content); And for the case [TFileKind.Photo] there is no handler in SelectorCompleteHandler. I can't determine which video I selected, I can't determine the file name. That's the problem! I need to understand: what did I choose!- 6 replies
-
- delphi 12
- firemonkey
-
(and 1 more)
Tagged with:
-
Delphi 12: How to Select an Existing Video from Photos in the FireMonkey iOS App?
Vanar replied to Vanar's topic in FMX
Thank you I'll try again- 6 replies
-
- delphi 12
- firemonkey
-
(and 1 more)
Tagged with:
-
Delphi 12: How to Select an Existing Video from Photos in the FireMonkey iOS App?
Vanar replied to Vanar's topic in FMX
Good afternoon Unfortunately, this only works for Android. You yourself commented on the link: https://stackoverflow.com/questions/67172197/select-existing-video-from-photos-in-firemonkey-app-ios-android- 6 replies
-
- delphi 12
- firemonkey
-
(and 1 more)
Tagged with:
-
My iOS application is configured to accept PUSH. When I accept "my" PUSH intended for my application, everything works fine, my behavior logic works. When my application is open, when I click on “foreign” (for other applications) PUSH, my application closes abnormally. Tell me, what am I doing wrong? procedure TFmMain.FormCreate(Sender: TObject); begin ... TMessageManager.DefaultManager.SubscribeToMessage(TPushRemoteNotificationMessage, PushRemoteNotificationMessageHandler); PUSHMessage := ''; ... end; Procedure TFmMain.PushRemoteNotificationMessageHandler(const Sender: TObject; const AMessage: TMessage); Begin If AMessage Is TPushRemoteNotificationMessage Then Begin PUSHMessage := TPushRemoteNotificationMessage(AMessage).Value.Notification; End; end; The form contains TNotificationCenter; procedure TFmMain.NotificationCenter1ReceiveLocalNotification(Sender: TObject; ANotification: TNotification); begin // Some actions end; How can I process only “my own” PUSH and ignore “others”? Even if NotificationCenter1ReceiveLocalNotification(Sender: TObject; ANotification: TNotification) is empty, When I click on "Aliens" PUSH, my application crashes!
- 4 replies
-
- delphi 11.3
- ios
-
(and 1 more)
Tagged with:
-
Delphi 11.3: When I click on "Aliens" PUSH, my Ios application crashes!
Vanar replied to Vanar's topic in FMX
It's decided! If anyone is interested: When you long press PUSH, the virtual keyboard is activated! And I have an event attached to OnVirtualKeyboardShown() ...- 4 replies
-
- delphi 11.3
- ios
-
(and 1 more)
Tagged with:
-
Delphi 11.3: When I click on "Aliens" PUSH, my Ios application crashes!
Vanar replied to Vanar's topic in FMX
After many attempts, I think that the application crashes only when you long press "Aliens" PUSH. When you long press "Aliens" PUSH, additional windows appear...- 4 replies
-
- delphi 11.3
- ios
-
(and 1 more)
Tagged with:
-
Delphi 11.3: When I click on "Aliens" PUSH, my Ios application crashes!
Vanar replied to Vanar's topic in FMX
What do you mean by "closes abnormally"? - the application crashes. Does the application crash without error messages? - Crashes without error messages Have you used the Console application to check the log messages that can help determine why your application is crashing? -I used it, but there are a lot of incomprehensible things there Here's the script: 1. Open the application 2. A message arrived from a telegram 3. Click on PUSH messages (a long request to immediately respond in a telegram) 4. And the application crashes Look at the console in the attachment Console.txt- 4 replies
-
- delphi 11.3
- ios
-
(and 1 more)
Tagged with:
-
Good afternoon! Does anyone know how to receive PUSH notifications in the background in an iOS app? PUSH notifications arrive on your phone, but the OnReceiveNotificationEvent(Sender: TObject; const ANotification: TPushServiceNotification) event does not fire. I need to process the PUSH data, perform some actions, and not just open the application.
-
This is, of course, beautiful code, but it only works when the application is running and active
-
Thank you very much!!!
-
Good afternoon! I have a question about push notifications in iOS. Is it possible to handle the click_action event (user clicking on a push notification)? The situation is as follows: I can't properly receive PUSH notifications when the iOS app is open or in the background. I'm interested in three application state scenarios: 1. iOS application is closed. A PUSH notification arrives. When you press PUSH, the application opens and “Some code” is executed. - This script works perfectly! 2. iOS application is open. A PUSH notification arrives and immediately “Certain code” is automatically executed. I wish it would ONLY run when PUSH is pressed! 3. The iOS application is in the background, minimized. A PUSH notification arrives. When you press PUSH, the application is activated, BUT “Some code” is not executed! That is, it all comes down to the PUSH notification click event: Only after clicking on PUSH notifications do I need to execute "Some code" Tell me how to do this or suggest your own scenario.
- 1 reply
-
- delphi;
- firemonkey
-
(and 1 more)
Tagged with:
-
Delphi 11.3, iOS: How to properly configure the reception of PUSH notifications in an iOS application?
Vanar replied to Vanar's topic in FMX
Task closed- 1 reply
-
- delphi;
- firemonkey
-
(and 1 more)
Tagged with:
-
Thank you!!! Everything is as you said The task is localized: OnReceiveNotificationEvent does not work in the background! I did the following: Placed the TNotificationCenter component on the form. The OnReceiveLocaNotification event is used, which is fired when a PUSH is received. But now the problem is that I can't get JSON from my PUSH. TNotificationCenter does not have a "Json" field. But I see the fields "Title", "Body", all other fields are service fields or cannot be changed. I did this: When forming, PUSH changed the contents of the “Title” field. The header consists of two lines: Title = 'current title' + sLineBreak + URL; The URL is the JSON content, it is the link you want to follow (within the application). The user sees ONLY the first line in the PUSH system window (possibly an OS feature), and the developer sees everything and can direct the application by URL Problem solved! Do you think this is an original solution or a crutch?🙂
-
Maybe I expressed myself incorrectly. My PUSH contains all the data (it is well formed and carries useful information). The situation is like this: 1. My application is in the background. 2. PUSH comes to the phone. At what point can I receive PUSH data: when PUSH came to the phone or when do I activate the application? The fact is that when I exit the background state of the application, I cannot read the information in PUSH. I just need to read this information. In what way can you get it, using what event? If I receive PUSH information, I will be able to not only wake up the application, but also perform some logic (depending on the content of the PUSH data).
-
Thank you, Are there any examples in Delphi on this topic?
-
Yes <key>UIBackgroundModes</key> <array> <string>fetch</string> <string>remote-notification</string> </array>
-
Hi All! Does anyone have a Goolge account login implementation for Delphi 11? Examples like GoogleSignin tweaked for Delphi <11 don't work!
-
- delphi 11
- google signin
-
(and 2 more)
Tagged with:
-
Thank you !!! Please implement TestMode: = False :)
-
AdMobExtra.zip does not work under Delphi 11! Does anyone have a working version of AdMobExtra.zip for Delphi 11 or another solution to implement interstitial ads for Delphi 11?