Jump to content

Vanar

Members
  • Content Count

    23
  • Joined

  • Last visited

Everything posted by Vanar

  1. 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. Thank you! I'll do so Topic closed
  3. Tell me, is there an implementation of video selection for iOS? For example, like selecting images by ActionTakePhotoFromLibrary or TOpenDialog.
  4. 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!
  5. 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. 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!
  7. 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() ...
  8. 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...
  9. 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
  10. 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.
  11. This is, of course, beautiful code, but it only works when the application is running and active
  12. 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.
  13. 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?🙂
  14. 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).
  15. Thank you, Are there any examples in Delphi on this topic?
  16. Yes <key>UIBackgroundModes</key> <array> <string>fetch</string> <string>remote-notification</string> </array>
  17. Vanar

    AdMob in Delphi11

    Hi all! I'm looking for an implementation of AdMob ads under Delphi 11 on android The implementations for Delphi 10.4 and below (such as https://github.com/ersanyakit/FMX.InterstitialAd.Android, AdMobExtra...) don't work! Share if anyone has!!!
  18. Vanar

    Delphi 11: Google SignIn

    Hi All! Does anyone have a Goolge account login implementation for Delphi 11? Examples like GoogleSignin tweaked for Delphi <11 don't work!
  19. Vanar

    AdMob in Delphi11

    Thank you !!! Please implement TestMode: = False :)
  20. Vanar

    Admob

    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?
×