I want to use cordova-plugin-wechat in ionic 3. But I'm not sure how to use it. There is @ionic-native/alipay for cordova-alipay-base. I tried to make @ionic-native/wechat by following @ionic-native/alipay, but couldn't. It's sure that @ionic-native plugins used typescript module wrapper, but can't read it with my type script level. Please give me some advice.
Asked
Active
Viewed 285 times
0
-
https://stackoverflow.com/questions/39532737/access-cordova-plugins-directly-from-ionic2-typescript-components same idea – misha130 Jun 20 '17 at 20:45
-
thanks misha, but I get 'Wechat is undefined' error. – ahadortiz Jun 20 '17 at 21:03
-
Are you testing on your phone? – misha130 Jun 20 '17 at 21:04
-
No, I'm not. Let me test it on a phone. – ahadortiz Jun 20 '17 at 21:08
-
I tested on phone, but app doesn't run. – ahadortiz Jun 20 '17 at 21:21
-
See the error in the console of the phone then. I'll try to explain in general the situation. These @ionic-native packages are wrappers for the original static variables that are injected by cordova(only on phone) when you install the plugin. I only suggested you skip the wrappers and go directly towards the plugins – misha130 Jun 20 '17 at 21:28