android – Do playstores rejects if I embed google maps inside webview?


Honorable StackOverflow members,

  1. I am building a Food Supply App in React Native (v0.71.13) for Android and iOS.
  2. I am using react-native-webview package for WebView.
  3. In the app I want to embed google maps for tracking using following approaches (just an example)

Let,

start_point = (23.7910155,90.4028301)

updated_start_point = (23.7874425,90.4151925)

end_point = (23.7695368,90.4302122)

I will get the below image if I set the below code:

map01

const MyWebComponent = () => {
return <WebView 
source={{ uri: 'https://www.google.com/maps/dir/23.7910155,90.4028301/23.7695368,90.4302122/@23.7910155,90.4028301,18z/data=!3m1!4b1!4m2!4m1!3e2?hl=en' }} 
style={{ flex: 1 }} />;
}

If I set the updated_start_point, then I will get the below image:

map02

const MyWebComponent = () => {
return <WebView 
source={{ uri: 'https://www.google.com/maps/dir/23.7874425,90.4151925/23.7695368,90.4302122/@23.7874425,90.4151925,18z/data=!3m1!4b1!4m2!4m1!3e2?hl=en' }} 
style={{ flex: 1 }} />;
}

If I follow the above approach then is it possible to get rejected from Google or Apple app stores? I want some suggestions.

Thanks in advance.

N.B.: I have prepaid credit card and Google cloud accepts only postpaid cards. So that, I want to try mentioned approach.

Latest articles

spot_imgspot_img

Related articles

Leave a reply

Please enter your comment!
Please enter your name here

spot_imgspot_img