ios - Trigger a push notification from inside the app -
is possible trigger push notification inside app itself?
i need build function compares remote file cached file , if there new content on remote file updates cache , triggers push notification app itself.
i wondering if possible? , if how go building it?
note: cached file in json format.
to make possible, have permanently check updates, drain user's battery , consume networking capacity, setting server realise task way go here.
it this:
- send device's push token server , subscribe changes file.
- trigger action on server, when remote file changes.
- send notification devices subscribed file using push token got in step 1.
to learn more how push notifications work, can have onto great tutorial here.
Comments
Post a Comment