Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48978

Push Notifications/Local Notifications Concept

$
0
0

Hello all…

I am hoping I could ask a conceptual question about an app we have been working on. We are new to ionic and apps in general. We are web-developers but Ionic has got us pretty far down the road in a short time.

So we have a small app that does SMS to landline (all the SMS stuff happens in the backend - so no need to get the the phone’s SMS capabilities). So its just send from Ionic and receive to Ionic - all through our backend

Right now, we wanted the app’s UI to mimic what a phone’s SMS screens may look like. Conversations, contacts, etc.

The “main” page is the conversation page, pick a contact or add a contact and send the message. App sends the message via API on our backend, the message is added to the message array for a visual indicator that message was sent. Think your SMS on yor phone. -This is all good.

To the into app (receive) is where our trouble is. We created a service and using @capacitor/push-notifications and got Firebase all working (backend sends to Firebase) … when the app is in background - all is good (havent got the click notification to open app yet)

My confusion is what to do when the app is open. I read some posts here that use a local-notification plugin/service to be called on the incoming push - we tried that - which actally worked quite well - except I do not know how to handle updating the screen (like bold entry or add to the messages array) - again I am trying to get this mimic texting back and forth with someone.

Since we just started this last week - we are on the latest Ionic etc. Currently we are only dealing with Android, but iOS will need to do the same. I have latest Android Studio as well etc.

Any direction, comments, etc. would be helpful.
thanks!

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48978

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>