freshworks / hotline-phonegap

Hotline Phonegap Plugin
https://hotline.io
Other
6 stars 11 forks source link

ionic2 app crashed #27

Closed startappsolution closed 7 years ago

startappsolution commented 7 years ago

i am using ionic2 install this plugin after app crashed

hrishikesh-p commented 7 years ago

Hi @startappsolution

Can you please provide us with a stack trace or any log ? That would be useful for us to debug.

startappsolution commented 7 years ago

EXCEPTION: Uncaught (in promise): TypeError: Cannot read property 'init' of undefined TypeError: Cannot read property 'init' of undefined at file:///android_asset/www/build/main.js:107606:42 at t.invoke (file:///android_asset/www/build/polyfills.js:3:9094) at Object.onInvoke (file:///android_asset/www/build/main.js:42152:37) at t.invoke (file:///android_asset/www/build/polyfills.js:3:9045) at e.run (file:///android_asset/www/build/polyfills.js:3:6481) at file:///android_asset/www/build/polyfills.js:3:4583 at t.invokeTask (file:///android_asset/www/build/polyfills.js:3:9723) at Object.onInvokeTask (file:///android_asset/www/build/main.js:42143:37) at t.invokeTask (file:///android_asset/www/build/polyfills.js:3:9659) at e.runTask (file:///android_asset/www/build/polyfills.js:3:7083)

On Wed, Mar 8, 2017 at 3:58 PM, Hrishikesh Premkumar < notifications@github.com> wrote:

Hi @startappsolution https://github.com/startappsolution

Can you please provide us with a stack trace or any log ? That would be useful for us to debug.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/freshdesk/hotline-phonegap/issues/27#issuecomment-285004958, or mute the thread https://github.com/notifications/unsubscribe-auth/ARqrUwJluGxIiO8WtZH8ei_HCOHJGuWlks5rjoLogaJpZM4MWeli .

--

Sincerely,

Startappsolution

startappsolution commented 7 years ago

i am using this line window["plugins"].Hotline.init({ appId : "", appKey : "" }, function(success){ console.log("This is called form the init callback"); });

jasontrask commented 7 years ago

Not sure about Ionic v2, but Ionic v3.4.0 this seems to be working well. I posted a code example in issue #33 which might help you.

arjunpaliath commented 7 years ago

For a full ionic sample app with Hotline, please go to https://github.com/arjunpaliath/ionic-sample