How can I get firemonkey to display a local notification on iOS? -
i've pulled following code embarcadero site (here) generate local notification.
procedure tform1.setnumberclick(sender: tobject); var mynotification: tnotification; begin // create instance of tnotification mynotification := notificationcenter1.createnotification; try mynotification.number :=18; mynotification.alertbody := 'delphi mobile device here!'; notificationcenter1.presentnotification(mynotification); mynotification.disposeof; end; end;
it compiles , runs. expected, did have create notificationcenter1 tnotificationcenter on form. works find under android, under ios butkus. no local notification, no count on icon, not error.
did ever work under xe8?
has changed respect local notification between xe8 , 10/seattle?
my phone running ios 9.2. did change in ios between 8.x , 9.x breaks local notifications firemonkey?
i've followed tutorial before, , works.
there 2 sample apps ship with 10 seattle.
i tried both of these on ios 9.2 delphi 10 seattle update 1, , worked expected me. (also worked in xe8). code looks correct well.
maybe @ point told ios not show notifications. did check in application settings?
Comments
Post a Comment