How to send an event with a flip icon from a phone call to the ember app?

I am developing phonegap / cordova applications with ember. To use the backgutton functionality from android, it is important to send the "backbutton" event to my ember-app. How to send event to ember app?

+4
source share
2 answers

I found this ember specific mixin very useful. Try Sealing bindings to use telephony events.

+1
source

I recently ran into this problem. I attached an eventblener script to the 'didInsertElement' event in my Ember View.

App.IndexView = Ember.View.extend({
   _eventonInsert : function () {
      document.addEventListener('deviceready', function(e) {
         document.addEventListener('backbutton', function(e) {
             //Your logic related to back button
         });
      });
   }.on('didInsertElement')
});
+1

Source: https://habr.com/ru/post/1528161/


All Articles