Vanar
Members-
Content Count
23 -
Joined
-
Last visited
Community Reputation
1 NeutralRecent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
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:
-
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:
-
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:
-
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 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:
-
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:
-
This is, of course, beautiful code, but it only works when the application is running and active
-
Thank you very much!!!
-
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).