Jump to content

Dave Nottage

  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by Dave Nottage

  1. Dave Nottage

    Firebase Notification

    Are you actually including that unit in your source? If so, where you have declared it, please use Ctrl-Click or right-click and Open File At Cursor. It should find it in the Delphi source in the fmx folder. If it finds it anywhere else, that's probably the issue.
  2. Dave Nottage

    Firebase Notification

    You didn't answer my other question, i.e:
  3. Dave Nottage

    I messed up my SDK and NDK Setup

    The test project: Does not have "Secure File Sharing" checked in the Entitlements section of the Project Options, Does not request the required permissions at runtime. Fixing these makes it work for me on Android 11.
  4. Dave Nottage

    RAD Studio 10.4.1 my first iOS app - can error

    iOS simulator is currently not supported. Use a real device
  5. Dave Nottage

    [Android] Hangs on splashscreen

    On Android, problems in deployment can cause the app to fail to start, however you have indicated it is also a problem on iOS, so it is more likely to be a problem with the initialization of one of the units included. Can you create a blank app that runs OK? If so, use that, and start adding your original to the project until it breaks - then you have a reproducible example.
  6. Dave Nottage

    TBitmap published property

    I have an FMX component with a published TBitmap property, but the property is not being read when the component is loaded (the other properties are). Holger Flick's article suggests that it is possible: https://flixengineering.com/archives/166 Is there something special I need to do to make it work? This is what the declaration looks like: TCustomNativeDoodad = class(TPresentedControl) private function GetMaxImage: TBitmap; function GetMinImage: TBitmap; function GetModel: TCustomNativeDoodadModel; overload; function GetValue: Single; procedure SetValue(const Value: Single); function GetOnValueChange: TNotifyEvent; function GetOrientation: TDoodadOrientation; procedure SetMaxImage(const Value: TBitmap); procedure SetMinImage(const Value: TBitmap); procedure SetOnValueChange(const Value: TNotifyEvent); procedure SetOrientation(const Value: TDoodadOrientation); protected function DefineModelClass: TDataModelClass; override; function RecommendSize(const AWishedSize: TSizeF): TSizeF; override; public constructor Create(AOwner: TComponent); override; property MaxImage: TBitmap read GetMaxImage write SetMaxImage; property MinImage: TBitmap read GetMinImage write SetMinImage; property Model: TCustomNativeDoodadModel read GetModel; property Orientation: TDoodadOrientation read GetOrientation write SetOrientation; property Value: Single read GetValue write SetValue; property OnValueChange: TNotifyEvent read GetOnValueChange write SetOnValueChange; end; [ComponentPlatformsAttribute(pfidiOS or pidAndroid)] TNativeDoodad = class(TCustomNativeDoodad) published property Align; property Anchors; property Height; property Margins; property MaxImage; property MinImage; property Orientation; property Position; property Size; property Value; property Visible default True; property Width; property OnValueChange; end; SetMaxImage and SetMinImage are not being called when the component is being loaded
  7. Dave Nottage

    TBitmap published property

    Which is the whole problem - they're not called when the values are streamed. I needed to override the Loaded method to see that they are.
  8. Dave Nottage

    [Android] Hangs on splashscreen

    If it reproduces the problem, it would be extremely useful.
  9. Dave Nottage

    Photo app for Android and iPhone

    I assume you mean do the equivalent code for iOS?
  10. Dave Nottage

    [Android] Hangs on splashscreen

    See my first reply.
  11. Dave Nottage

    Adding a new SDK for MacOS fails

    Which means you'll need to do: sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
  12. Dave Nottage

    Adding a new SDK for MacOS fails

    If you installed Delphi from scratch, you'll still need to apply the patches (there's 4) In a Terminal window on the Mac, can you run this command? /usr/bin/xcodebuild -version -sdk In the output there should be at least one entry of MacOSX
  13. Dave Nottage

    Firebase Notification

    What do you mean by hang? Have you checked to see if PushService is non-nil when executing this line? ServiceConnection := TPushServiceConnection´╗┐.Create(PushService);
  14. Dave Nottage

    Firebase Notification

    Please pay attention to compiler warnings. TPushService.TServiceNames.GCM has been deprecated. Use TPushService.TServiceNames.FCM
  15. Dave Nottage

    PAServer Error: file permissions do not allow debugging

    Please see: http://docwiki.embarcadero.com/RADStudio/Sydney/en/Acquiring_Permission_to_Support_Debugging_on_a_Mac Although that page needs fixing. The file in question is: dbkosx_27_0
  16. Dave Nottage

    Discover all LAN network with a PC

    Either you posted the wrong source (a VCL app), or your question needs editing. It appears you wanted to replicate some Java code in Delphi.
  17. Dave Nottage

    Discover all LAN network with a PC

    What have you tried? Does none of it succeed, or only certain parts?
  18. Dave Nottage

    [Android] Hangs on splashscreen

    Use a logcat viewer to check the log messages for any errors. Beyond that, you're going to need to give more detail about what is in the app, and perhaps a reproducible example if possible.
  19. You could use Grijjy's DeployMan tool - it makes this process a lot easier. They describe it in this article: https://blog.grijjy.com/2017/01/30/embed-facebook-sdk-for-android-in-your-delphi-mobile-app-part-2/ In the section titled "Add the resources to the Delphi Deployment Manager for your Android project"
  20. Dave Nottage

    XCode 12 compile error

    Tools|GetIt Package Manager. In Categories, filter by Patches and Hotfixes: Unless the patch has been fixed by now, you need to also download the latest PAServer. Please see: https://delphiworlds.com/2020/12/apple-patch-re-patched/
  21. That's something I need to do. There's basic help for the "MonkeyBuilder" edition, and virtually zero for the "full" version which is in beta. I'll make sure I can help while working on some doc. The installer for Mosco itself actually just the standard .pkg format, created with the pkgbuild command: https://www.manpagez.com/man/1/pkgbuild/ I may look into using some of the options in order to make creating installers more customisable
  22. Dave Nottage

    iOS Metal Api FlipHorizontal Crash

    Were there any particular classes that apply to you for that bug? Well, as you can see, I share your pain with that particular one ­čśë
  23. Yes, it was posted in the channel a few hours after you asked about it
  24. Dave Nottage

    RTMP Live Camera Publish Component For Delphi 10.4.1

    Does it absolutely have to be RTMP? Just seems like RTMP is fading while other streaming methods like WebRTC are taking over. Alcinoe has implementations for WebRTC for Android and iOS: https://github.com/Zeus64/alcinoe. There's also a demo that uses it, here: https://github.com/Zeus64/alcinoe/tree/master/demos/ALLiveVideoChat
  25. I had a look at Packages and could not work that out, either. Your project is? I've been working on an app called Mosco that creates .pkg installers (amongst a number of other things). It doesn't have the Presentation customizations that Packages does, but I might be able to add those if needed. I have a plan to release it commercially sometime early next year. If you're interested in Mosco and use Slack, you could use this self-invite link to join my Slack workspace: https://slack.delphiworlds.com and I could add you to the private beta channel.