taivo / parse-push-plugin

Push notification plugin for Cordova/Phonegap/ionic on Parse platform
118 stars 102 forks source link

how to import this plugin in ionic 2 project #112

Open drmark1989 opened 7 years ago

drmark1989 commented 7 years ago

i am trying to import this plugin using import {ParsePushPlugin} from 'parse-push-plugin'

but it always give me an error

can you help me

avilasolucoes-naora commented 7 years ago

after component imports:

declare var ParsePushPlugin;

drmark1989 commented 7 years ago

i did it but when the app pause and reload it says : ERROR ReferenceError: ParsePushPlugin is not defined

if i close the app completely and remove it from recents and run it again it works but if i minimize it or start it while it is still in recents it gives the above error

any solution please

stevenballs commented 7 years ago

try it.

https://stackoverflow.com/questions/46297009/tutorial-how-to-use-parse-push-notification-with-ionic-2-and-ionic-3 [https://cdn.sstatic.net/Sites/stackoverflow/img/apple-touch-icon@2.png?v=73d79a89bded]https://stackoverflow.com/questions/46297009/tutorial-how-to-use-parse-push-notification-with-ionic-2-and-ionic-3

Tutorial How to use Parse push notification with ionic 2 and ionic 3https://stackoverflow.com/questions/46297009/tutorial-how-to-use-parse-push-notification-with-ionic-2-and-ionic-3 stackoverflow.com 1.You Create new project. Command>ionic start --v2 2.You open file config.xml in new project. <


จาก: drmark1989 notifications@github.com ส่ง: 7 ตุลาคม 2560 20:12 ถึง: taivo/parse-push-plugin สำเนาถึง: Subscribed ชื่อเรื่อง: Re: [taivo/parse-push-plugin] how to import this plugin in ionic 2 project (#112)

i did it but when the app pause and reload it says : ERROR ReferenceError: ParsePushPlugin is not defined

if i close the app completely and remove it from recents and run it again it works but if i minimize it or start it while it is still in recents it gives the above error

any solution please

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/taivo/parse-push-plugin/issues/112#issuecomment-334934218, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AFKM0mZN-OW80S7JQH0aKeCtxtTUCfXKks5sp3jBgaJpZM4PVWZ0.