WebsiteBeaver / CordovaCall

Cordova CallKit & ConnectionService plugin for iOS/Android that displays the native call UI for VOIP apps
MIT License
196 stars 91 forks source link

Add push notifications #5

Open D-Marc1 opened 7 years ago

D-Marc1 commented 7 years ago
jQrgen commented 6 years ago

This would be awesome, would we support silent push notifications that wake up background jobs?

D-Marc1 commented 6 years ago

Ya, this is likely all it would do. For iOS, PushKit was specifically made for this purpose; for Android it would just be a silent notification probably. There is no timeline or guarantee for any of the new features, but it's largely predicated on how many stars this repo gets. If it gets popular enough, I know that @dmarcs would be happy to add stuff like this.

jQrgen commented 6 years ago

Great,

How does the plugin fit into an architecture now? Do you have to use a seperate plugin for VOIP pushes which triggers this plugin in background on a VOIP push?

Thanks

D-Marc1 commented 6 years ago

Yep, for now just use a separate plugin for PushKit to wakeup the app; that's all you really need to do.

ostrichegret commented 6 years ago

@D-Marc1 hi, do you have a recommendation of cordova plugin for showing call screen like whatsapp when the phone screen is off and locked?

I can only find push notification that show on notification bar and need user click to open the app.

Thank you

D-Marc1 commented 6 years ago

You're literally describing this plugin. For PushKit, use this.

Bobisback commented 5 years ago

@D-Marc1 Is there a guide for android to do something similar to pushkit? Or do you just send a silent notification and then call cordovacall?

mattkhaw commented 4 years ago

@D-Marc1 I'm just gonna comment here on how to get both iOS and Android to work with push notifications. I hope this will help and I think the plugin doesn't require to be modified for Android, but for iOS definitely yes since I've encountered this issue before and I've made a working plugin that uses PushKit with CordovaCall.

For iOS, there's no way to get it working separately since iOS 13 (you still can getaway with prior versions). Just use this instead.

For Android, just use background notifications. The reason why I think this plugin doesn't need any modifications on this end is because of the variety of push notifications libraries. Some might use OneSignal and some might use the standard FCM as an example. Therefore, there's no need for that.