HMS-Core / hms-react-native-plugin

This repo contains all of React-Native HMS plugins.
https://developer.huawei.com/consumer/en/doc/overview/HMS-Core-Plugin?ha_source=hms1
Apache License 2.0
247 stars 68 forks source link

Location Kit Error Code: 800. No activity incoming #139

Closed arndom closed 3 years ago

arndom commented 3 years ago

Description I followed the tutorial on how to get last location and got the below error. I then copied the code from the demo and got the same error. I also tried it on cloud debugging, same error as well. Please help 🥺🥺

Expected behavior Get the Location (Longitude and latitude)

Current behavior error message: {"errorCode: 800, errorMessage": "907135003: Connection Failed: update failed, because no activity incoming, can't pop update page (26)" }

Screenshots Screenshot_20210816-154302_Salah_Streak 1

Environment

ozcanozgur commented 3 years ago

Hi @arndom,

You need to add meta-data to your AndroidManifest.xml.

Configuring Metadata

<meta-data android:name="com.huawei.hms.client.channel.androidMarket" android:value="false" />

Thank you for using our React Native Location Plugin.

AhmedSharawyFCIS commented 3 years ago

@ozcanozgur I added the meta-data and also have the same issue

arndom commented 3 years ago

I should have said this earlier but it didn't solve it for me as well so I just moved on, it wasn't that crucial of a feature in the project