AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Cross-Platform-Entwicklung Delphi 11.1 IOS Remote Push Notifications
Thema durchsuchen
Ansicht
Themen-Optionen

Delphi 11.1 IOS Remote Push Notifications

Ein Thema von friedt99 · begonnen am 18. Sep 2022 · letzter Beitrag vom 18. Sep 2022
 
friedt99

Registriert seit: 17. Mär 2010
45 Beiträge
 
#1

Delphi 11.1 IOS Remote Push Notifications

  Alt 18. Sep 2022, 09:16
Hallo Zusammen,

ich richte gerade Push Notifications an meine App ein. In FMX verwende ich dazu "Grijjy.RemotePush.Receiver".

Ich teste das auf dem Mac mit (die Variablen sind gesetzt):

curl -v --header "apns-topic: $TOPIC" --header "apns-push-type: alert" --header "authorization: bearer $AUTHENTICATION_TOKEN" --data '{"aps":{"alert":"test"}}' --http2 https://${APNS_HOST_NAME}/3/device/${DEVICE_TOKEN}

Dieser Push klappt, ich bekomme Status 200 und die Notification kommt bei der App an.

Jetzt versuche ich aber "stille" Notifications zu senden, um der App zu sagen, das neue Daten vorhanden sind.

https://developer.apple.com/document...es_to_your_app

Ich teste das auf dem Mac mit:

curl -v --header "apns-topic: $TOPIC" --header "apns-push-type: background" --header "authorization: bearer $AUTHENTICATION_TOKEN" --header "apns-priority: 5" --data '{"aps":{"content-available" : 1}}' --http2 https://${APNS_HOST_NAME}/3/device/${DEVICE_TOKEN}

Auch hier kommt Status 200 raus, aber diese Notification kommt nicht in der App an.

Ich vermute mal es liegt daran, das diese Notifications laut Apple an application(_:didReceiveRemoteNotification:fetchCo mpletionHandler
gesendet werden. Aber wie komme ich da dran / wie setze ich diesen Handler.


Grüße
Thomas

Geändert von friedt99 (18. Sep 2022 um 11:39 Uhr)
  Mit Zitat antworten Zitat
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 04:04 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz