K Keith Yong Active Member Licensed User Longtime User Oct 16, 2020 #1 May I know is there any solution for this? Currently only Huawei phone not able to receive the notification.
May I know is there any solution for this? Currently only Huawei phone not able to receive the notification.
Pendrush Well-Known Member Licensed User Longtime User Oct 16, 2020 #2 New Huawei devices come without Google Services, Firebase Services are also unavailable. Huawei got their own service for Push notification. If device have Google Play then problem is somewhere else. Upvote 0
New Huawei devices come without Google Services, Firebase Services are also unavailable. Huawei got their own service for Push notification. If device have Google Play then problem is somewhere else.
Sandman Expert Licensed User Longtime User Oct 16, 2020 #3 This Wish might be relevant: https://www.b4x.com/android/forum/threads/can-we-integrate-huawei-mobile-services-in-b4x.110245/ Upvote 0
This Wish might be relevant: https://www.b4x.com/android/forum/threads/can-we-integrate-huawei-mobile-services-in-b4x.110245/
K Keith Yong Active Member Licensed User Longtime User Oct 17, 2020 #4 other than firebase services, is there any other push services that Huawei can support? Upvote 0
Pendrush Well-Known Member Licensed User Longtime User Oct 17, 2020 #5 Official link: Huawei Push Kit. Last edited: Oct 17, 2020 Upvote 0
K Keith Yong Active Member Licensed User Longtime User Oct 17, 2020 #6 Pendrush said: Official link: Huawei Push Kit. Click to expand... Thanks, may I know how can I incorporate the services into B4A? Upvote 0
Pendrush said: Official link: Huawei Push Kit. Click to expand... Thanks, may I know how can I incorporate the services into B4A?
Pendrush Well-Known Member Licensed User Longtime User Oct 17, 2020 #7 File agconnect-services.json need to be converted into resources. Currently no solution for this. Without solution for this issue it's not possible to create wrapper for B4A. Upvote 0
File agconnect-services.json need to be converted into resources. Currently no solution for this. Without solution for this issue it's not possible to create wrapper for B4A.
K Keith Yong Active Member Licensed User Longtime User Oct 17, 2020 #8 https://www.b4x.com/android/forum/threads/detect-huawei-mobile-services.117723/#post-736555 I saw the above link, seem like he was trying to include the services, but I think he is failed.... Upvote 0
https://www.b4x.com/android/forum/threads/detect-huawei-mobile-services.117723/#post-736555 I saw the above link, seem like he was trying to include the services, but I think he is failed....
Pendrush Well-Known Member Licensed User Longtime User Oct 17, 2020 #9 Already described problem in previous post. Wrapping library is not problem, convert agconnect-services.json to resources is problem. Upvote 0
Already described problem in previous post. Wrapping library is not problem, convert agconnect-services.json to resources is problem.
K Keith Yong Active Member Licensed User Longtime User Oct 17, 2020 #10 Pendrush said: Already described problem in previous post. Wrapping library is not problem, convert agconnect-services.json to resources is problem. Click to expand... Noted. Huawei's user keep increasing, will B4a development team try to do anything for it in order to overcome this problem? Upvote 0
Pendrush said: Already described problem in previous post. Wrapping library is not problem, convert agconnect-services.json to resources is problem. Click to expand... Noted. Huawei's user keep increasing, will B4a development team try to do anything for it in order to overcome this problem?
Erel B4X founder Staff member Licensed User Longtime User Oct 18, 2020 #11 Pendrush said: File agconnect-services.json need to be converted into resources. Currently no solution for this. Without solution for this issue it's not possible to create wrapper for B4A. Click to expand... I'm pretty sure that it can be solved with a small B4J utility + a comment link. Can you upload such json file and post the expected resources? Upvote 0
Pendrush said: File agconnect-services.json need to be converted into resources. Currently no solution for this. Without solution for this issue it's not possible to create wrapper for B4A. Click to expand... I'm pretty sure that it can be solved with a small B4J utility + a comment link. Can you upload such json file and post the expected resources?
Pendrush Well-Known Member Licensed User Longtime User Oct 18, 2020 #12 Erel said: Can you upload such json file and post the expected resources? Click to expand... From this post: https://www.b4x.com/android/forum/t...e-agconnect-services-json.123406/#post-770969 you can download example app/s and just compile them. Everything is already there. Upvote 0
Erel said: Can you upload such json file and post the expected resources? Click to expand... From this post: https://www.b4x.com/android/forum/t...e-agconnect-services-json.123406/#post-770969 you can download example app/s and just compile them. Everything is already there.
Erel B4X founder Staff member Licensed User Longtime User Oct 18, 2020 #13 I believe that the solution is here: Document developer.huawei.com You can load the raw json file directly. You can do it with inline Java code or in your library. Pass an InputStream instead of context.getAssets(). This will allow it to work in debug mode. I see that someone has already did something similar: https://www.b4x.com/android/forum/t...ethod-found-for-oncreate-no-arguments.114663/ Upvote 0
I believe that the solution is here: Document developer.huawei.com You can load the raw json file directly. You can do it with inline Java code or in your library. Pass an InputStream instead of context.getAssets(). This will allow it to work in debug mode. I see that someone has already did something similar: https://www.b4x.com/android/forum/t...ethod-found-for-oncreate-no-arguments.114663/
K Keith Yong Active Member Licensed User Longtime User Oct 18, 2020 #14 Erel said: I believe that the solution is here: Document developer.huawei.com View attachment 101668 You can load the raw json file directly. You can do it with inline Java code or in your library. Pass an InputStream instead of context.getAssets(). This will allow it to work in debug mode. I see that someone has already did something similar: https://www.b4x.com/android/forum/t...ethod-found-for-oncreate-no-arguments.114663/ Click to expand... Thanks Erel. Can I have the sample project for better understanding? Upvote 0
Erel said: I believe that the solution is here: Document developer.huawei.com View attachment 101668 You can load the raw json file directly. You can do it with inline Java code or in your library. Pass an InputStream instead of context.getAssets(). This will allow it to work in debug mode. I see that someone has already did something similar: https://www.b4x.com/android/forum/t...ethod-found-for-oncreate-no-arguments.114663/ Click to expand... Thanks Erel. Can I have the sample project for better understanding?
Erel B4X founder Staff member Licensed User Longtime User Oct 18, 2020 #15 There is no sample project. It still requires some work but it should be possible. Upvote 0
K Keith Yong Active Member Licensed User Longtime User Oct 19, 2020 #16 Erel said: There is no sample project. It still requires some work but it should be possible. Click to expand... I'm not familiar with adding the Jar, my I know how can I get the Jar file? Upvote 0
Erel said: There is no sample project. It still requires some work but it should be possible. Click to expand... I'm not familiar with adding the Jar, my I know how can I get the Jar file?