Jump to content

Dave Nottage

Members
  • Content Count

    1296
  • Joined

  • Last visited

  • Days Won

    29

Everything posted by Dave Nottage

  1. As per the earlier replies, in Grijjy.ErrorReporting.pas. Please read the replies to see exactly where in that unit, and what to change.
  2. Dave Nottage

    Application crashed when i connect Android Service

    Are you saying you do not understand this part?
  3. Dave Nottage

    Application crashed when i connect Android Service

    That doesn't show where in the project the code is executed. In later versions of Android, you a service needs to be started when the application is in the foreground, so you may need to execute the code that starts it in the OnShow event of the main form, or possibly add a listener for the BecameActive application event, and execute it then. Also, this code: Does not match the exception in the image, since 'Z' <> 'F'. I assume a typo, or you renamed the service.
  4. Dave Nottage

    Android payment terminal

    This code is not going to work. I suggest looking at the code for TLocalServiceConnection.TJavaServiceConnection.onServiceConnected in the System.Android.Service unit in the Delphi source code. Warning: it's not for the faint of heart 🙂
  5. Dave Nottage

    Android payment terminal

    Might help to show your code for whatever implements JServiceConnection.
  6. Dave Nottage

    Delphi 11.2 + Android sdk 31 = "black screen"

    One reason may be that your startup code is attempting to access something that requires additional runtime permissions. I suggest using a logcat viewer to see what warnings or errors are emitted - personally, I use Device Lens (my own product). Alternatively, isolate what your code does at startup (including components on the main form that access OS resources e.g. Bluetooth) until you find the culprit.
  7. Dave Nottage

    TestFlight problems

    I assume this worked? Thanks for the info! I just tested it myself, without the changes to info.plist.TemplateOSX.xml and it worked. Thanks again! I'll be updating the report
  8. Dave Nottage

    TestFlight problems

    I assume this worked? Thanks for the info!
  9. Dave Nottage

    TestFlight problems

    An example of what probably needs to be added to info.plist.TemplateOSX.xml (inside of the dict tag): <key>DTPlatformBuild</key> <string>22C65</string> <key>DTPlatformName</key> <string>macosx</string> <key>DTPlatformVersion</key> <string>13.1</string> <key>DTSDKBuild</key> <string>22C55</string> <key>DTSDKName</key> <string>macosx13.1</string> <key>DTXcode</key> <string>1420</string> <key>DTXcodeBuild</key> <string>14C18</string> DTPlatformBuild is (as I understand) the value for the OS used to build the app. In my case I have Ventura 13.1 DTSDKBuild the build value for the SDK. Here it is for macOS 13.1 SDK DTXcode is the version of Xcode with no periods i.e. here it is 14.2.0 (or just 14.2) DTXcodeBuild is the build value for the version of Xcode used I expect the most important values are DTPlatformBuild, DTSDKBuild and DTXcodeBuild - it may be that the others can be omitted. No guarantee that all the values are correct here - I had to do some Googling to find them.
  10. Dave Nottage

    TestFlight problems

    Never mind - it looks like it's an additional problem: https://developer.apple.com/forums/thread/689377 Delphi is not including the information mentioned in that thread. Yet another thing to work around 😞 More later when I work out what needs to be added
  11. Dave Nottage

    TestFlight problems

    Was the profile that you included (as embedded.provisionprofile) the App Store provisioning profile?
  12. Dave Nottage

    App as target via "share"

    That doesn't match this pattern: https://developer.android.com/training/sharing/receive#update-manifest I suggest also reading the rest of that page in regards to handling the incoming intent
  13. Dave Nottage

    In App Purchase (consumable and subscription)

    According the code, they're supported on at least Android. Check the FMX.InAppPurchase.Android unit. Not sure about iOS. The current implementation for Android was updated after that article was written.
  14. Dave Nottage

    error compling Android Service

    You need jdk-11.0.14.101-hotspot. You could use Tools | Manage Platforms, and select Additional Options in the IDE to install it, then configure your Android SDKs in the SDK Manager in Delphi to modify the settings on the Java tab. Once you have that right, see: https://github.com/DelphiWorlds/HowTo/tree/main/Solutions/AndroidServiceDelphi111
  15. Dave Nottage

    How convert an android app into an i-phone app?

    One that supports the latest version of iOS, if possible. It appears this is iPhone 7. That said, the support for later iOS versions for that device might soon disappear. See here: https://docwiki.embarcadero.com/RADStudio/Alexandria/en/IOS_Mobile_Application_Development That's usually not a requirement, however there might be some specific arrangement they're referring to that I'm unaware of. The only cost should be for the Apple Developer program
  16. Dave Nottage

    Mac address on Android 6.0 or above

    Apparently things are different on Android 11 or higher: https://developer.android.com/training/articles/user-data-ids#mac-11-plus Going by that documentation, it appears it is not possible any more. If you're after a unique identifier for the device, see the earlier messages in this thread.
  17. I never assumed anything like that. What is missing from his post that raises that question?
  18. Check the links in his post
  19. Dave Nottage

    Alexandria 11.2 and Android 13 Question

    Because it doesn't officially, yet. That is not to say apps will not work on it - in fact, they can, and do Yes, this is often a source of much confusion. The installed SDK "version" and installed API levels and build tools do not necessarily directly relate to whether an app will work on a particular version of Android. There are some considerations to allow for to support Android 13, outlined here: https://developer.android.com/about/versions/13/migration. There's also been a number of questions here and on Stack Overflow about how to deal with some of them
  20. Dave Nottage

    swagger help needed

    If you're after something that does both (generate the doc, and parse it), there's this: https://github.com/paolo-rossi/OpenAPI-Delphi
  21. Dave Nottage

    Using iosApi.Foundation

    The error message in the image says: " ',' or ':' expected, but identifier 'iOSapi' found..". You need to look at the code that comes before it, which you cut off in the image
  22. Dave Nottage

    Using iosApi.Foundation

    Except you do not say what the actual problem is. Your code compiles OK here.
  23. Dave Nottage

    Cannot update LunchImege Icon for iPhone

    It's an iOS "quirk". It caches launch images for 24 hours. One way to fix it immediately is to change either the project name or CFBundleIdentifier value
  24. Dave Nottage

    In App Purchase (consumable and subscription)

    Yes.. it supports Android and iOS
  25. Dave Nottage

    In App Purchase (consumable and subscription)

    Looks like it still has some learning to do
×