Hello everyone, Inside my app, I am given a Latitude and Longitude shipping address.
And when the user presses a button, it opens the Google Map and directions from my location to the delivery location according to Latitude and Longitude. But now I also want to do the same thing for Chinese customers, And I see in China Baidu Map is replaced for GoogleMap, But I don’t know how to open deep link similar to google map, But this is my way of doing it but it is crashing, can someone help me to solve this problem
DeepLink From Google:
if (isIos) {
return `comgooglemaps://?daddr=${lat},${lng}&directionsmode=driving`;
} else {
return `google.navigation:q=${lat},${lng}`;
}
My deeplink open Baidu Maps:
`<baidumap://map/navi?location=39.940488,116.355425>`;
Anyone please help me resolve this problem.