Jump to content

Dave Nottage

Members
  • Content Count

    1296
  • Joined

  • Last visited

  • Days Won

    29

Everything posted by Dave Nottage

  1. Dave Nottage

    Android Push Notifications Question

    I'm supporting these kinds of devices with Delphi 11.3. Please see: https://github.com/DelphiWorlds/HowTo/tree/main/Solutions/AndroidLowerVersions
  2. Dave Nottage

    Android Push Notifications Question

    Correct. It was introduced in Delphi 10.3 in order to support changes in Android. If you're doing mobile development with Delphi, it pays to stay current.
  3. Dave Nottage

    Android Push Notifications Question

    If you mean that the banner does not show, when an app is in the foreground, by default you do not see the banner. If you want the banner to show when the app is in the foreground you need to use a channel with the Importance set to High, and set the notifications ChannelId property, e.g. (extending your code): procedure SetNotification(const aTitle, aMessage: string); begin var vNotifiCenter:= TNotificationCenter.Create(nil); try if vNotifiCenter.Supported then begin var LChannel := vNotifiCenter.CreateChannel('MyChannel', 'MyChannel', 'My Channel'); try LChannel.Importance := TImportance.High; vNotifiCenter.CreateOrUpdateChannel(LChannel); finally LChannel.Free; end; var vNotification := vNotifiCenter.CreateNotification; try vNotification.AlertBody := aMessage; vNotification.Title := aTitle; vNotification.EnableSound := true; vNotification.ChannelId = 'MyChannel'; vNotifiCenter.PresentNotification(vNotification); finally vNotification.Free; end; end; finally vNotifiCenter.Free; end; end;
  4. Dave Nottage

    Android Push Notifications Question

    What you're showing is a local notification. Not sure what you mean - is the text in AMessage not showing in the notification? Which platform(s) is this an issue on?
  5. Dave Nottage

    Android does not start

    Sometimes, due to a shortcoming with the IDE, the application gets "stuck" or crashes before the debugger has a chance to attach to the process. This can happen when a library required at initialization time is not present, or is not the right version. Without detail about the project (of which none at all so far has been provided), it'll be very difficult to diagnose.
  6. Dave Nottage

    Just open folder ( Android )

    Please show your code
  7. Dave Nottage

    Delphi 10.4.2 add support for Android 13

    Because it's the version of the SDK. When referring to API level being 33, it means just that: API level, not SDK version. Unfortunately Google decided to use names in the manifest like minSdkVersion and targetSdkVersion, when they actually refer to API level. 9009 means the executable was not found. One of your paths in the SDK settings may still be wrong.
  8. Dave Nottage

    Delphi 10.4.2 add support for Android 13

    You should not need to modify the base path. You should only need to ensure API 33 level and Build Tools 33.x are installed, and change the paths for the Build Tools related locations, and the SDK API Level location. APKSigner is part of the Android SDK, not Java SDK. See this post, and the replies that follow:
  9. Dave Nottage

    Any Demo On How To Use TBiometricAuth In Delphi

    Incorrect. USE_BIOMETRIC needs to be included in the permissions, but only dangerous permissions need to be explicitly requested at runtime. You're also missing the Use Biometric permission in the Permissions section of Project Options. Sorry, I should have checked for that earlier.
  10. Dave Nottage

    Any Demo On How To Use TBiometricAuth In Delphi

    No error messages? Can you provide a reproducible example that does not have dependencies on TFrameStand or other 3rd party code?
  11. Dave Nottage

    Any Demo On How To Use TBiometricAuth In Delphi

    You'll need to me more specific about what "won't work" means. Please also note that only Android 10 or higher is supported
  12. Dave Nottage

    Any Demo On How To Use TBiometricAuth In Delphi

    You do not have the Biometric Authorization Service option checked in the Entitlement List in Project Options
  13. Dave Nottage

    Any Demo On How To Use TBiometricAuth In Delphi

    It's in Portuguese, but there's this: Also this: https://github.com/DeveloppeurPascal/Delphi-samples/tree/main/FireMonkey-Samples/017-TBiometricAuth
  14. Dave Nottage

    Take a pic works on Iphone but not on android.

    It's a common issue. Also, I implemented something similar before it was added to Delphi. Using Google can help, although with this particular issue it's not entirely obvious what is the easiest way to resolve it. Here, Delphi is doing the work for you, by creating a provider_paths.xml file and including it in the deployment.
  15. Dave Nottage

    Take a pic works on Iphone but not on android.

    Make sure that the Secure File Sharing option is checked in the Entitlement List section of the Project Options:
  16. Dave Nottage

    Cannot set Version info nor Icons

    Your screenshot is cut off - it does not actually show the ProductVersion value (further down)
  17. Dave Nottage

    D11, Play billing Library 5.2.0

    Just noticed your code does not call SetupInAppPurchase, so it's no wonder it does not even fire OnError.
  18. Dave Nottage

    D11, Play billing Library 5.2.0

    It's supposed to be backward compatible. You should use the OnError event of InAppPurchase1 to find out what the failure is.
  19. Dave Nottage

    Android with Delphi 10.4.2 Sydney SDK API 32 /versions/12

    That's not your complete manifest, however given the error message, you need to add android:exported="true" To the activity, e.g.: <activity android:name="com.embarcadero.firemonkey.FMXNativeActivity" android:exported="true" etc
  20. Dave Nottage

    Android with Delphi 10.4.2 Sydney SDK API 32 /versions/12

    It'd be way easier to diagnose what the problem is if you quoted the exact error message
  21. Dave Nottage

    iOS FMX controls not show on Iphone 14 device with ios 16

    I started taking a look into the problem, however it seems to be an issue deep in the Delphi runtime and it's a bit beyond me at the moment.
  22. Dave Nottage

    Shared library used on Android crashes

    Please see:
  23. Still wrong - there's no XE in the version name. If it's 10.2, it is Delphi Tokyo
  24. I missed that part, thanks. I was focusing more on how it might be implemented. It seems that way. Given that, you'd need to code your server to be able to handle sending a message every second or so. Since sending the message seems to sometimes take more than a second, you'd need to spawn a thread or two (or three) to do the work.
  25. Dave Nottage

    MacOS 11.3 SDK problem

    That message should probably also recommend executing this command from a terminal window on the Mac: xcode-select -p If you're using the default install of Xcode, it should output: /Applications/Xcode.app/Contents/Developer If it doesn't, use this command: xcode-select --switch /Applications/Xcode.app/Contents/Developer
×