bsorrentino / cordova-broadcaster

Cordova Plugin to allow message exchange between javascript and native (and viceversa)
MIT License
115 stars 53 forks source link

Is it possible to receive a broadcast from an external native Android app to an Ionic2 app using this plugin? #20

Closed anghiulian closed 3 years ago

anghiulian commented 7 years ago

If not, would it be possible to use the plugin and rewrite the plugin to use the global broadcast manager instead of the local one?

bsorrentino commented 7 years ago

It is possible, take a look last comments on issue #17

anghiulian commented 7 years ago

I looked over the #17 issue but there are some things that are not clear to me. This is the full scenario that I am talking about:

Considering the scenario above, I don't think the solution from #17 is feasible. App2 should subscribe to certain global broadcasts in order to receive them. That's why I asked previously if you ever tried a variant of the library, with global subscribe for broadcast.

bsorrentino commented 7 years ago

I haven't planned to do it yet.

My suggestion is to register handler from external event natively in the ionic app and inside that handler you could send local notification using broadcaster plugin ( it is much less complex than seems)

bsorrentino commented 3 years ago

closed for inactivity