javascript - Cordova + ratchet - script inside Push is not working on Android 4.3 and below -


i developing cordova application android , windows , using ratchet framework. have written pagewise script inside push function like,

window.addeventlistener('push', function() {   //my custom events }); 

after building application cordova, my custom events firing in android 4.4 whereas not firing in android 4.3 , below. when checked html pages on browser without building app, push working fine in versions .

i stuck here . problem ?

thanks in advance.

customevent not defined in webview on android <4.4.
check pull request on ratchet, it's patch redefine customevent if not.
https://github.com/twbs/ratchet/pull/748/files


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -