Oct 30, 2020 Replies: 26 Huawei is the number one manufacturer of phones (https://www.statista.com/statistics...by-smartphone-vendors-since-4th-quarter-2009/). Due to USA restrictions, the new phones that they sell do not include Google Play, Google Play Services and other Google components. They have created their own ecosystem and as developers we shouldn't ignore this ecosystem. There might be opportunities here. Currently this library supports analytics, push notifications, DRM check, ads and in app purchases. I want to thank @Ferdari and other developers who already built wrappers for some of HMS features. Their work did help me while building this library. The implementation is built in such way that it will not add the HMS SDK unless the build configuration includes the HMS conditional symbol (Ctrl + B): Instructions: Register as a Huawei developer: https://developer.huawei.com/consumer/en/ Download the attached zip and www.b4x.com/android/files/hms_sdk.zip. Unzip them and copy all files to the additional libraries folder. Open the AppGallery Connect page and create a new project. Find the Manage APIs page and make sure that Analytics Kit and Push Kit (if needed) are enabled. Go to the General Information tab. Set the SHA-256 fingerprint. You can find it in the IDE under Tools - Private Sign Key: Download agconnect-services.json and put it in the project folder (where the b4a file is located). Add the HMS symbol to the build configuration (Ctrl + B) and make sure that the package name matches the project package name defined in AppGallery Connect. Add to main module: Code: #Region HMS Libs+ #if HMS #additionaljar: hms-push-5.0.2.300.aar #additionaljar: hms-agconnect-core-1.4.1.300.aar #additionaljar: hms-agconnect-credential-1.4.0.300.aar #additionaljar: hms-agconnect-https-1.4.0.300.aar #additionaljar: hms-availableupdate-5.0.3.301.aar #additionaljar: hms-base-5.0.3.301.aar #additionaljar: hms-datastore-core-1.4.0.300.aar #additionaljar: hms-device-5.0.3.301.aar #additionaljar: hms-hianalytics-5.0.4.300.aar #additionaljar: hms-Log-5.0.3.301.aar #additionaljar: hms-network-common-4.0.18.300.aar #additionaljar: hms-network-grs-4.0.18.300.aar #additionaljar: hms-opendevice-5.0.2.300.aar #additionaljar: hms-security-encrypt-1.1.5.301.aar #additionaljar: hms-security-ssl-1.1.5.301.aar #additionaljar: hms-security-base-1.1.5.301.aar #additionaljar: hms-stats-5.0.3.301.aar #additionaljar: hms-tasks-1.4.1.300.aar #additionaljar: hms-ui-5.0.3.301.aar #additionaljar: hms-update-2.0.7.301.aar #AdditionalJar: hms-hianalytics-core-5.0.4.300.jar #AdditionalJar: hms-hianalytics-framework-5.0.4.300.jar #AdditionalJar: hms-greendao-3.3.0.jar #AdditionalJar: hms-greendao-api-3.3.0.jar #AdditionalJar: hms-datastore-annotation-1.4.0.300.jar #AdditionalJar: hms-drm-2.5.4.302.aar #AdditionalJar: hms-apptouch-5.0.2.300.aar #AdditionalJar: hms-ads-banner-13.4.30.301.aar #AdditionalJar: hms-ads-base-13.4.30.301.aar #AdditionalJar: hms-ads-interstitial-13.4.30.301.aar #AdditionalJar: hms-ads-lang-13.4.30.301.aar #AdditionalJar: hms-ads-lite-13.4.30.301.aar #AdditionalJar: hms-ads-native-13.4.30.301.aar #AdditionalJar: hms-ads-reward-13.4.30.301.aar #AdditionalJar: hms-ads-splash-13.4.30.301.aar #AdditionalJar: hms-ads-template-13.4.30.301.aar #AdditionalJar: hms-iap-5.1.0.300.aar #AdditionalJar: hms-scan-2.0.0.300.aar #AdditionalJar: hms-dynamic-api-1.0.13.303.aar #AdditionalJar: hms-ml-computer-agc-inner-2.0.5.304.aar #AdditionalJar: hms-ml-computer-camera-inner-2.0.5.304.aar #AdditionalJar: hms-ml-computer-commonutils-inner-2.0.5.304.aar #AdditionalJar: hms-ml-computer-ha-inner-2.0.5.304.aar #AdditionalJar: hms-ml-computer-sdkbase-inner-2.0.5.304.aar #CustomBuildAction: folders ready, %WINDIR%\system32\cmd.exe, /c copy ..\agconnect-services.json bin\extra\assets\ #End If #End Region Add to manifest editor: Code: #if HMS CreateResourceFromFile(Macro, hms.hms) CreateResourceFromFile(Macro, hms.hms_push) CreateResourceFromFile(Macro, hms.hms_drm) CreateResourceFromFile(Macro, hms.hms_ads) SetApplicationAttribute(android:usesCleartextTraffic, "true") #end if Add to B4XMainPage (or the Activity for non-B4XPages projects): Code: Sub Class_Globals Private Root As B4XView Private xui As XUI Private hms As HMSManager End Sub Public Sub Initialize End Sub Private Sub B4XPage_Created (Root1 As B4XView) hms.Initialize hms.EnableLogs Root = Root1 Root.LoadLayout("MainPage") End Sub Make sure that Huawei AppGallery app is installed on the target device. Run the project in debug mode. It will show analytics related logs. Move the app to the background and to the foreground a few times. You should see a message similar to: Code: 10-30 11:05:02.794 20298 21440 I HiAnalyticsSDK: SendTask=> events PostRequest sendevent TYPE : oper, TAG : _openness_config_tag, resultCode: 200 ,reqID:7d328467a831341dcfb442174a5c8208 You should also see the traffic in: Tips & Notes The analytics logs are only redirected in debug mode. In debug mode you might see an "application not responding" message from time to time. It is related to these logs. It doesn't happen in release mode. Push notifications: https://www.b4x.com/android/forum/threads/hms-huwaei-push-kit.124100/#content Updates Update both the attached HMS.zip and www.b4x.com/android/files/hms_sdk.zip V1.07 - New HMS_NewToken event that is raised in the Starter service when a new push token is available: Code: Private Sub HMS_NewToken(Token As String) Log("New_Token: " & Token) End Sub V1.05 - HMS.ScanBitmap - scans a bitmap for known barcode types. V1.04 - Support for barcode scanning: https://www.b4x.com/android/forum/threads/hms-barcode-qr-scan.133334/ Make sure to update the dependencies list, hms_sdk and hms.zip. V1.03 - Support for in app purchases. The dependencies list was updated. See this tutorial: HMS - In App Purchases HMS v1.03 adds support for in app purchases. There are several steps that need to be done on HUAWEI developers console, including: enable merchant service, enable IAP API and add products. https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/introduction-0000001050033062... www.b4x.com V1.02 - Support for banner and interstitial ads. The dependencies and manifest editor snippets were updated. HMS Ads HMS v1.02 adds support for banner and interstitial ads. https://www.b4x.com/android/forum/threads/hms-huawei-sdk.124034/ Make sure to update the dependencies list and the manifest editor items. The code is simple: 'Banner Dim banner As B4XView = hms.CreateBannerAd("testw6vs28auh3"... www.b4x.com V1.01 - Missing CheckDRM method added. V1.00 - Support for DRM (verification of paid apps): https://www.b4x.com/android/forum/threads/hms-huawei-drm-verification.124725/ Attachments hms.zip hms.zip 8.4 KB · Views: 649 Last edited: Apr 14, 2024 Click to expand...
Huawei is the number one manufacturer of phones (https://www.statista.com/statistics...by-smartphone-vendors-since-4th-quarter-2009/). Due to USA restrictions, the new phones that they sell do not include Google Play, Google Play Services and other Google components. They have created their own ecosystem and as developers we shouldn't ignore this ecosystem. There might be opportunities here. Currently this library supports analytics, push notifications, DRM check, ads and in app purchases. I want to thank @Ferdari and other developers who already built wrappers for some of HMS features. Their work did help me while building this library. The implementation is built in such way that it will not add the HMS SDK unless the build configuration includes the HMS conditional symbol (Ctrl + B): Instructions: Register as a Huawei developer: https://developer.huawei.com/consumer/en/ Download the attached zip and www.b4x.com/android/files/hms_sdk.zip. Unzip them and copy all files to the additional libraries folder. Open the AppGallery Connect page and create a new project. Find the Manage APIs page and make sure that Analytics Kit and Push Kit (if needed) are enabled. Go to the General Information tab. Set the SHA-256 fingerprint. You can find it in the IDE under Tools - Private Sign Key: Download agconnect-services.json and put it in the project folder (where the b4a file is located). Add the HMS symbol to the build configuration (Ctrl + B) and make sure that the package name matches the project package name defined in AppGallery Connect. Add to main module: Code: #Region HMS Libs+ #if HMS #additionaljar: hms-push-5.0.2.300.aar #additionaljar: hms-agconnect-core-1.4.1.300.aar #additionaljar: hms-agconnect-credential-1.4.0.300.aar #additionaljar: hms-agconnect-https-1.4.0.300.aar #additionaljar: hms-availableupdate-5.0.3.301.aar #additionaljar: hms-base-5.0.3.301.aar #additionaljar: hms-datastore-core-1.4.0.300.aar #additionaljar: hms-device-5.0.3.301.aar #additionaljar: hms-hianalytics-5.0.4.300.aar #additionaljar: hms-Log-5.0.3.301.aar #additionaljar: hms-network-common-4.0.18.300.aar #additionaljar: hms-network-grs-4.0.18.300.aar #additionaljar: hms-opendevice-5.0.2.300.aar #additionaljar: hms-security-encrypt-1.1.5.301.aar #additionaljar: hms-security-ssl-1.1.5.301.aar #additionaljar: hms-security-base-1.1.5.301.aar #additionaljar: hms-stats-5.0.3.301.aar #additionaljar: hms-tasks-1.4.1.300.aar #additionaljar: hms-ui-5.0.3.301.aar #additionaljar: hms-update-2.0.7.301.aar #AdditionalJar: hms-hianalytics-core-5.0.4.300.jar #AdditionalJar: hms-hianalytics-framework-5.0.4.300.jar #AdditionalJar: hms-greendao-3.3.0.jar #AdditionalJar: hms-greendao-api-3.3.0.jar #AdditionalJar: hms-datastore-annotation-1.4.0.300.jar #AdditionalJar: hms-drm-2.5.4.302.aar #AdditionalJar: hms-apptouch-5.0.2.300.aar #AdditionalJar: hms-ads-banner-13.4.30.301.aar #AdditionalJar: hms-ads-base-13.4.30.301.aar #AdditionalJar: hms-ads-interstitial-13.4.30.301.aar #AdditionalJar: hms-ads-lang-13.4.30.301.aar #AdditionalJar: hms-ads-lite-13.4.30.301.aar #AdditionalJar: hms-ads-native-13.4.30.301.aar #AdditionalJar: hms-ads-reward-13.4.30.301.aar #AdditionalJar: hms-ads-splash-13.4.30.301.aar #AdditionalJar: hms-ads-template-13.4.30.301.aar #AdditionalJar: hms-iap-5.1.0.300.aar #AdditionalJar: hms-scan-2.0.0.300.aar #AdditionalJar: hms-dynamic-api-1.0.13.303.aar #AdditionalJar: hms-ml-computer-agc-inner-2.0.5.304.aar #AdditionalJar: hms-ml-computer-camera-inner-2.0.5.304.aar #AdditionalJar: hms-ml-computer-commonutils-inner-2.0.5.304.aar #AdditionalJar: hms-ml-computer-ha-inner-2.0.5.304.aar #AdditionalJar: hms-ml-computer-sdkbase-inner-2.0.5.304.aar #CustomBuildAction: folders ready, %WINDIR%\system32\cmd.exe, /c copy ..\agconnect-services.json bin\extra\assets\ #End If #End Region Add to manifest editor: Code: #if HMS CreateResourceFromFile(Macro, hms.hms) CreateResourceFromFile(Macro, hms.hms_push) CreateResourceFromFile(Macro, hms.hms_drm) CreateResourceFromFile(Macro, hms.hms_ads) SetApplicationAttribute(android:usesCleartextTraffic, "true") #end if Add to B4XMainPage (or the Activity for non-B4XPages projects): Code: Sub Class_Globals Private Root As B4XView Private xui As XUI Private hms As HMSManager End Sub Public Sub Initialize End Sub Private Sub B4XPage_Created (Root1 As B4XView) hms.Initialize hms.EnableLogs Root = Root1 Root.LoadLayout("MainPage") End Sub Make sure that Huawei AppGallery app is installed on the target device. Run the project in debug mode. It will show analytics related logs. Move the app to the background and to the foreground a few times. You should see a message similar to: Code: 10-30 11:05:02.794 20298 21440 I HiAnalyticsSDK: SendTask=> events PostRequest sendevent TYPE : oper, TAG : _openness_config_tag, resultCode: 200 ,reqID:7d328467a831341dcfb442174a5c8208 You should also see the traffic in: Tips & Notes The analytics logs are only redirected in debug mode. In debug mode you might see an "application not responding" message from time to time. It is related to these logs. It doesn't happen in release mode. Push notifications: https://www.b4x.com/android/forum/threads/hms-huwaei-push-kit.124100/#content Updates Update both the attached HMS.zip and www.b4x.com/android/files/hms_sdk.zip V1.07 - New HMS_NewToken event that is raised in the Starter service when a new push token is available: Code: Private Sub HMS_NewToken(Token As String) Log("New_Token: " & Token) End Sub V1.05 - HMS.ScanBitmap - scans a bitmap for known barcode types. V1.04 - Support for barcode scanning: https://www.b4x.com/android/forum/threads/hms-barcode-qr-scan.133334/ Make sure to update the dependencies list, hms_sdk and hms.zip. V1.03 - Support for in app purchases. The dependencies list was updated. See this tutorial: HMS - In App Purchases HMS v1.03 adds support for in app purchases. There are several steps that need to be done on HUAWEI developers console, including: enable merchant service, enable IAP API and add products. https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/introduction-0000001050033062... www.b4x.com V1.02 - Support for banner and interstitial ads. The dependencies and manifest editor snippets were updated. HMS Ads HMS v1.02 adds support for banner and interstitial ads. https://www.b4x.com/android/forum/threads/hms-huawei-sdk.124034/ Make sure to update the dependencies list and the manifest editor items. The code is simple: 'Banner Dim banner As B4XView = hms.CreateBannerAd("testw6vs28auh3"... www.b4x.com V1.01 - Missing CheckDRM method added. V1.00 - Support for DRM (verification of paid apps): https://www.b4x.com/android/forum/threads/hms-huawei-drm-verification.124725/
S Scantech Well-Known Member Licensed User Longtime User Oct 30, 2020 #2 Is this a requirement needed to upload apk? Also im confused with number 10? What do i add in activity? Last edited: Oct 30, 2020
Is this a requirement needed to upload apk? Also im confused with number 10? What do i add in activity?
Erel B4X founder Staff member Licensed User Longtime User Nov 1, 2020 #3 Scantech said: Is this a requirement needed to upload apk? Click to expand... No. You can upload APKs to Huawei app gallery without it. Scantech said: Also im confused with number 10? What do i add in activity? Click to expand... You need to add an initialize an HmsManager object. Better to do it in the starter service in non-B4XPages projects.
Scantech said: Is this a requirement needed to upload apk? Click to expand... No. You can upload APKs to Huawei app gallery without it. Scantech said: Also im confused with number 10? What do i add in activity? Click to expand... You need to add an initialize an HmsManager object. Better to do it in the starter service in non-B4XPages projects.
fbritop Well-Known Member Licensed User Longtime User Nov 2, 2020 #4 Could not find enable Logs method? (HMS Version 0.90)
fbritop Well-Known Member Licensed User Longtime User Nov 3, 2020 #6 Thanks, with all test going, I have put it, take it, put it take it son many times. I´ve seen now there is a background service (HMSMessagingService). I have seen in within the b4xlib file, and also when we send a data payload only message from HW Console I see the service start. But how do we access that service?. I know it is there because to check it out I tried to create a service with the same name but (correctly) it complains that the service already exists
Thanks, with all test going, I have put it, take it, put it take it son many times. I´ve seen now there is a background service (HMSMessagingService). I have seen in within the b4xlib file, and also when we send a data payload only message from HW Console I see the service start. But how do we access that service?. I know it is there because to check it out I tried to create a service with the same name but (correctly) it complains that the service already exists
Erel B4X founder Staff member Licensed User Longtime User Nov 3, 2020 #7 Currently there is nothing to do with the service. As explained in the push tutorial (https://www.b4x.com/android/forum/threads/hms-huwaei-push-kit.124100/#content) the messages sent are notification messages. Data messages are less useful with HMS.
Currently there is nothing to do with the service. As explained in the push tutorial (https://www.b4x.com/android/forum/threads/hms-huwaei-push-kit.124100/#content) the messages sent are notification messages. Data messages are less useful with HMS.
fbritop Well-Known Member Licensed User Longtime User Nov 3, 2020 #8 Thanks, whats the point on this code under HMMSMessagingService.bas? B4X: #if Java import com.huawei.hms.push.*; @Override public void onNewToken(String paramString) { BA.Log("onNewToken: " + paramString); } @Override public void onMessageReceived(RemoteMessage message) { BA.Log("onMessageReceived: " + message); } #end if
Thanks, whats the point on this code under HMMSMessagingService.bas? B4X: #if Java import com.huawei.hms.push.*; @Override public void onNewToken(String paramString) { BA.Log("onNewToken: " + paramString); } @Override public void onMessageReceived(RemoteMessage message) { BA.Log("onMessageReceived: " + message); } #end if
Erel B4X founder Staff member Licensed User Longtime User Nov 4, 2020 #9 Nothing useful for now. It should log data messages.
Erel B4X founder Staff member Licensed User Longtime User Nov 19, 2020 #10 V1.00 - Support for DRM (verification of paid apps): https://www.b4x.com/android/forum/threads/hms-huawei-drm-verification.124725/
V1.00 - Support for DRM (verification of paid apps): https://www.b4x.com/android/forum/threads/hms-huawei-drm-verification.124725/
C CaptKronos Active Member Licensed User Longtime User Nov 20, 2020 #11 I have followed the tutorial and am getting a "client api invalid" error. Code: --------- beginning of main 11-20 11:29:05.351 14266 14266 I HMSSDK_AutoInit: Push init start 11-20 11:29:08.113 14266 14302 E HMSSDK_AutoInit: Push init failed 11-20 11:29:08.113 14266 14302 E HMSSDK_AutoInit: com.huawei.hms.common.ApiException: 907135003: client api invalid 11-20 11:29:08.113 14266 14302 E HMSSDK_AutoInit: at com.huawei.hms.opendevice.a.a(ErrorEnum.java:272) 11-20 11:29:08.113 14266 14302 E HMSSDK_AutoInit: at com.huawei.hms.opendevice.k.doExecute(GetTokenTask.java:58) 11-20 11:29:08.113 14266 14302 E HMSSDK_AutoInit: at com.huawei.hms.opendevice.k.doExecute(GetTokenTask.java:34) 11-20 11:29:08.113 14266 14302 E HMSSDK_AutoInit: at com.huawei.hms.common.internal.TaskApiCall.onResponse(TaskApiCall.java:190) 11-20 11:29:08.113 14266 14302 E HMSSDK_AutoInit: at com.huawei.hms.common.internal.HuaweiApiManager$ConnectionManager.innerConnectionFailed(HuaweiApiManager.java:327) 11-20 11:29:08.113 14266 14302 E HMSSDK_AutoInit: at com.huawei.hms.common.internal.HuaweiApiManager$ConnectionManager.onConnectionFailed(HuaweiApiManager.java:341) 11-20 11:29:08.113 14266 14302 E HMSSDK_AutoInit: at com.huawei.hms.common.internal.BaseHmsClient.notifyFailed(BaseHmsClient.java:415) 11-20 11:29:08.113 14266 14302 E HMSSDK_AutoInit: at com.huawei.hms.common.internal.BaseHmsClient.resolution(BaseHmsClient.java:389) 11-20 11:29:08.113 14266 14302 E HMSSDK_AutoInit: at com.huawei.hms.common.internal.BaseHmsClient.checkAvailabilityAndConnect(BaseHmsClient.java:367) 11-20 11:29:08.113 14266 14302 E HMSSDK_AutoInit: at com.huawei.hms.common.internal.BaseHmsClient.connect(BaseHmsClient.java:427) 11-20 11:29:08.113 14266 14302 E HMSSDK_AutoInit: at com.huawei.hms.common.internal.HuaweiApiManager$ConnectionManager.connect(HuaweiApiManager.java:307) 11-20 11:29:08.113 14266 14302 E HMSSDK_AutoInit: at com.huawei.hms.common.internal.HuaweiApiManager$ConnectionManager.sendRequest(HuaweiApiManager.java:227) 11-20 11:29:08.113 14266 14302 E HMSSDK_AutoInit: at com.huawei.hms.common.internal.HuaweiApiManager.connectAndSendRequest(HuaweiApiManager.java:146) 11-20 11:29:08.113 14266 14302 E HMSSDK_AutoInit: at com.huawei.hms.common.internal.HuaweiApiManager.handleMessage(HuaweiApiManager.java:131) 11-20 11:29:08.113 14266 14302 E HMSSDK_AutoInit: at android.os.Handler.dispatchMessage(Handler.java:102) 11-20 11:29:08.113 14266 14302 E HMSSDK_AutoInit: at android.os.Looper.loop(Looper.java:214) 11-20 11:29:08.113 14266 14302 E HMSSDK_AutoInit: at android.os.HandlerThread.run(HandlerThread.java:65) 11-20 11:29:09.654 14266 14266 I HiAnalyticsSDK: 11-20 11:29:09.654 14266 14266 I HiAnalyticsSDK: ======================================= 11-20 11:29:09.654 14266 14266 I HiAnalyticsSDK: HiAnalyticsSDK_5.0.4.300 11-20 11:29:09.654 14266 14266 I HiAnalyticsSDK: ======================================= ** Activity (main) Pause, UserClosed = false ** ** Service (starter) Destroy (ignored)**
I have followed the tutorial and am getting a "client api invalid" error. Code: --------- beginning of main 11-20 11:29:05.351 14266 14266 I HMSSDK_AutoInit: Push init start 11-20 11:29:08.113 14266 14302 E HMSSDK_AutoInit: Push init failed 11-20 11:29:08.113 14266 14302 E HMSSDK_AutoInit: com.huawei.hms.common.ApiException: 907135003: client api invalid 11-20 11:29:08.113 14266 14302 E HMSSDK_AutoInit: at com.huawei.hms.opendevice.a.a(ErrorEnum.java:272) 11-20 11:29:08.113 14266 14302 E HMSSDK_AutoInit: at com.huawei.hms.opendevice.k.doExecute(GetTokenTask.java:58) 11-20 11:29:08.113 14266 14302 E HMSSDK_AutoInit: at com.huawei.hms.opendevice.k.doExecute(GetTokenTask.java:34) 11-20 11:29:08.113 14266 14302 E HMSSDK_AutoInit: at com.huawei.hms.common.internal.TaskApiCall.onResponse(TaskApiCall.java:190) 11-20 11:29:08.113 14266 14302 E HMSSDK_AutoInit: at com.huawei.hms.common.internal.HuaweiApiManager$ConnectionManager.innerConnectionFailed(HuaweiApiManager.java:327) 11-20 11:29:08.113 14266 14302 E HMSSDK_AutoInit: at com.huawei.hms.common.internal.HuaweiApiManager$ConnectionManager.onConnectionFailed(HuaweiApiManager.java:341) 11-20 11:29:08.113 14266 14302 E HMSSDK_AutoInit: at com.huawei.hms.common.internal.BaseHmsClient.notifyFailed(BaseHmsClient.java:415) 11-20 11:29:08.113 14266 14302 E HMSSDK_AutoInit: at com.huawei.hms.common.internal.BaseHmsClient.resolution(BaseHmsClient.java:389) 11-20 11:29:08.113 14266 14302 E HMSSDK_AutoInit: at com.huawei.hms.common.internal.BaseHmsClient.checkAvailabilityAndConnect(BaseHmsClient.java:367) 11-20 11:29:08.113 14266 14302 E HMSSDK_AutoInit: at com.huawei.hms.common.internal.BaseHmsClient.connect(BaseHmsClient.java:427) 11-20 11:29:08.113 14266 14302 E HMSSDK_AutoInit: at com.huawei.hms.common.internal.HuaweiApiManager$ConnectionManager.connect(HuaweiApiManager.java:307) 11-20 11:29:08.113 14266 14302 E HMSSDK_AutoInit: at com.huawei.hms.common.internal.HuaweiApiManager$ConnectionManager.sendRequest(HuaweiApiManager.java:227) 11-20 11:29:08.113 14266 14302 E HMSSDK_AutoInit: at com.huawei.hms.common.internal.HuaweiApiManager.connectAndSendRequest(HuaweiApiManager.java:146) 11-20 11:29:08.113 14266 14302 E HMSSDK_AutoInit: at com.huawei.hms.common.internal.HuaweiApiManager.handleMessage(HuaweiApiManager.java:131) 11-20 11:29:08.113 14266 14302 E HMSSDK_AutoInit: at android.os.Handler.dispatchMessage(Handler.java:102) 11-20 11:29:08.113 14266 14302 E HMSSDK_AutoInit: at android.os.Looper.loop(Looper.java:214) 11-20 11:29:08.113 14266 14302 E HMSSDK_AutoInit: at android.os.HandlerThread.run(HandlerThread.java:65) 11-20 11:29:09.654 14266 14266 I HiAnalyticsSDK: 11-20 11:29:09.654 14266 14266 I HiAnalyticsSDK: ======================================= 11-20 11:29:09.654 14266 14266 I HiAnalyticsSDK: HiAnalyticsSDK_5.0.4.300 11-20 11:29:09.654 14266 14266 I HiAnalyticsSDK: ======================================= ** Activity (main) Pause, UserClosed = false ** ** Service (starter) Destroy (ignored)**
Erel B4X founder Staff member Licensed User Longtime User Nov 22, 2020 #12 V1.01 - Missing CheckDRM method added.
Erel B4X founder Staff member Licensed User Longtime User Nov 22, 2020 #13 CaptKronos said: I have followed the tutorial and am getting a "client api invalid" error. Click to expand... Please start a new thread.
CaptKronos said: I have followed the tutorial and am getting a "client api invalid" error. Click to expand... Please start a new thread.
Erel B4X founder Staff member Licensed User Longtime User Nov 25, 2020 #14 V1.02 - Support for banner and interstitial ads. The dependencies and manifest editor snippets were updated. HMS Ads HMS v1.02 adds support for banner and interstitial ads. https://www.b4x.com/android/forum/threads/hms-huawei-sdk.124034/ Make sure to update the dependencies list and the manifest editor items. The code is simple: 'Banner Dim banner As B4XView = hms.CreateBannerAd("testw6vs28auh3"... www.b4x.com
V1.02 - Support for banner and interstitial ads. The dependencies and manifest editor snippets were updated. HMS Ads HMS v1.02 adds support for banner and interstitial ads. https://www.b4x.com/android/forum/threads/hms-huawei-sdk.124034/ Make sure to update the dependencies list and the manifest editor items. The code is simple: 'Banner Dim banner As B4XView = hms.CreateBannerAd("testw6vs28auh3"... www.b4x.com
S skaliwag Member Licensed User Longtime User Dec 28, 2020 #15 Excellent library. I agree - Huawei is too large a user base to ignore. One quick question (for now) - why is ClearTextTraffic required?
Excellent library. I agree - Huawei is too large a user base to ignore. One quick question (for now) - why is ClearTextTraffic required?
Erel B4X founder Staff member Licensed User Longtime User Dec 28, 2020 #16 It is needed if you are using the ads SDK. This is based on Huawei documentation.
Erel B4X founder Staff member Licensed User Longtime User Dec 30, 2020 #17 V1.03 - Support for in app purchases. HMS - In App Purchases HMS v1.03 adds support for in app purchases. There are several steps that need to be done on HUAWEI developers console, including: enable merchant service, enable IAP API and add products. https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/introduction-0000001050033062... www.b4x.com New dependency: Code: #AdditionalJar: hms-iap-5.1.0.300.aar
V1.03 - Support for in app purchases. HMS - In App Purchases HMS v1.03 adds support for in app purchases. There are several steps that need to be done on HUAWEI developers console, including: enable merchant service, enable IAP API and add products. https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/introduction-0000001050033062... www.b4x.com New dependency: Code: #AdditionalJar: hms-iap-5.1.0.300.aar
S skaliwag Member Licensed User Longtime User Jan 15, 2021 #18 Scantech said: Is this a requirement needed to upload apk? Click to expand... Erel said: No. You can upload APKs to Huawei app gallery without it. Click to expand... In this case, is it enough to just copy agconnect-services.json to the assets, or is more required?
Scantech said: Is this a requirement needed to upload apk? Click to expand... Erel said: No. You can upload APKs to Huawei app gallery without it. Click to expand... In this case, is it enough to just copy agconnect-services.json to the assets, or is more required?
Erel B4X founder Staff member Licensed User Longtime User Jan 17, 2021 #19 You don't need to add anything if you just want to submit an app to App Gallery.
Ferdari Active Member Licensed User Longtime User Apr 14, 2021 #20 Erel said: Currently this library supports analytics, push notifications, DRM check, ads and in app purchases. I want to thank @Ferdari and other developers who already built wrappers for some of HMS features. Their work did help me while building this library. Click to expand... I Thank you for simplifying the integration and the other Huawei services, certainly i will use your library as mine is incomplete.
Erel said: Currently this library supports analytics, push notifications, DRM check, ads and in app purchases. I want to thank @Ferdari and other developers who already built wrappers for some of HMS features. Their work did help me while building this library. Click to expand... I Thank you for simplifying the integration and the other Huawei services, certainly i will use your library as mine is incomplete.