Delphi-Quellcode:
if Assigned(FNotification)
then
begin
TUILocalNotification.Init(FNotification, tmpNotificationP);
tmpDictionary := TUILocalNotification.Wrap(tmpNotificationP).userInfo;
// Access Violation
end;
Delphi-Quellcode:
var
tmpKeyArray: NSArray;
tmpNotificationP: Pointer;
begin
M_1.Lines.Add(RemoteNotifications.DeviceToken);
if Assigned(FNotification)
then
begin
TUILocalNotification.Init(FNotification, tmpNotificationP);
M_1.Lines.Add('
OnLaunchNotification : ' + #13#10 + TUILocalNotification.Wrap(tmpNotificationP).userInfo.description.UTF8String);
// Access Violation
end;
end;
Die Variable FNotification ist vom Typ UILocalNotification.
Edit 1:
Selbst eine einfache Zeile wie diese hier bringt eine
Access Violation :
Delphi-Quellcode:
var
UserInfo: NSDictionary;
begin
if Assigned(FNotification) then
begin
UserInfo := FNotification.userInfo;
end;
end;