j3k0 / cordova-plugin-purchase

In-App Purchase for Cordova on iOS, Android and Windows
https://purchase.cordova.fovea.cc
1.29k stars 535 forks source link

Huwawei Appgallery purchase plugin #1093

Open rafaellop opened 3 years ago

rafaellop commented 3 years ago

Huawei made available their plugin for inapp purchases from cordova apps for use in the Huawei Appgallery store. It would be great to have that store supported in the @j3k0 cordova-plugin-purchase plugin. What do you think? https://developer.huawei.com/consumer/en/doc/development/HMS-Guides/iap-integrating-cordova-sdk-v4

j3k0 commented 3 years ago

Hey, if the license is compatible we ca integrate the code and write a "bridge". I'll contact them.

j3k0 commented 3 years ago

I'm a bit lost on their website, did you find where the we can download the cordova plugin ?

rafaellop commented 3 years ago

@j3k0 I've just emailed you.

j3k0 commented 3 years ago

I didn't get an email. Did you use hoelt@fovea.cc ?

rafaellop commented 3 years ago

Yes, I've used the email. It seems you may have my ISP domain blocked or something. I can try to send it from a different domain. Please let me know.

NLueg commented 3 years ago

What is the status of supporting the Huawei AppGallery? I would really appreciate it.

rafaellop commented 3 years ago

I can send it to @j3k0 but it seems my email is bouncing.

j3k0 commented 3 years ago

Hey @rafaellop - Yes, I didn't get the email (maybe the file is too big for GMail?)

I tried again browsing around Huawei website, to google "cordova huawei plugin", ... no luck. All I could do is reaching some "coming soon" pages. Where did you find the cordova plugin?

Thanks

j3k0 commented 3 years ago

Got it! Thanks @rafaellop

j3k0 commented 3 years ago

Anyone has experience working with AppGallery? I think it would require a new plugin (this one with Google integration and another one for the huawei integration). I'm thinking about only providing a support javascript file that implements the same API as cordova-plugin-purchase over the HMS plugin provided by Huawei.

Also, apparently the sandbox mode for Huawei AppGallery development is not available outside of China... How convenient.

rafaellop commented 3 years ago

I don't have any experience with the AppGallery. They just contacted me encouraging to port my app to their ecosystem, but firstly they didn't support Cordova. Recently got contacted again and their sent me information about the plugin I told you about. I've sent a question to my consultant in Huawei about the sandbox and testing possibilities in general and waiting for a reply few days already.

yoprogramo commented 3 years ago

I have downloaded the code and it is licensed Apache v2.0 so we can provide you (I guess)... I'll try to send to you to see if it is possible to integrate this purchase method.

rodrigograca31 commented 3 years ago

I'm also looking for this functionality but I think we will need 2 different code bases.

and looks like Huawei already put out a library for cordova/ionic: https://www.npmjs.com/package/@hmscore/cordova-plugin-hms-iap https://github.com/HMS-Core/hms-cordova-plugin Code samples: https://medium.com/huawei-developers/how-to-use-hms-iap-plugin-with-ionic-f7baa48a77b2

Now we just need some code to call either that library or this one depending of if Play Services are available or not...

simion commented 3 years ago

I would need this too for https://clandesto.app Got IAP working on Android/IOS, published app also on huawei AppGallery, but i would rather have one implementation for IAP.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.