Ionic brains! Help me out with this…
I need to use push notifications in my mobile app. My case is this - data comes from a Thing (which has a deviceId) and arrives at AWS IoT. The data triggers a rule to generate a push notification. The push notification will go to the user’s phone, i.e. the person who owns the Thing. The Thing itself doesn’t know anything about it’s owner, so neither will the incoming packet. What is the best practice for joining the dots between the IoT rule and the identifier (the app’s token?) that is used to direct the push notification to that specific phone.
My initial thinking was using the IoT Rule to publish to a Topic including the /deviceId/ of the Thing. Then in the mobile app, subscribe to a topic for each deviceId, since the owner does know which devices they own.
How would you architect this? Keen to hear some good options! Thanks all.