Jump to content

Dave Nottage

Members
  • Content Count

    561
  • Joined

  • Last visited

  • Days Won

    13

Dave Nottage last won the day on December 14 2020

Dave Nottage had the most liked content!

Community Reputation

199 Excellent

Technical Information

  • Delphi-Version
    Delphi 10.4 Sydney

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Dave Nottage

    iOS, Error e8000084

    If you haven't already, try using a different cable
  2. 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.
  3. Dave Nottage

    Firebase Notification

    You didn't answer my other question, i.e:
  4. 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.
  5. Dave Nottage

    RAD Studio 10.4.1 my first iOS app - can error

    iOS simulator is currently not supported. Use a real device
  6. 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.
  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

    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
  9. Dave Nottage

    [Android] Hangs on splashscreen

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

    Photo app for Android and iPhone

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

    [Android] Hangs on splashscreen

    See my first reply.
  12. 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
  13. 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
  14. 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);
  15. Dave Nottage

    Firebase Notification

    Please pay attention to compiler warnings. TPushService.TServiceNames.GCM has been deprecated. Use TPushService.TServiceNames.FCM
×