Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOS open baidumap scheme failed #153

Closed
string-lzc opened this issue Oct 19, 2020 · 1 comment
Closed

IOS open baidumap scheme failed #153

string-lzc opened this issue Oct 19, 2020 · 1 comment

Comments

@string-lzc
Copy link

When I call the following code with IOS, it gave me an error false. btw, the scheme url works in the safari.

 const sApp = startApp.set('baidumap://map/geocoder?address=北京市海淀区上地信息路9号奎科科技大厦&src=ios.fmc.capd');
 sApp.start(function() { /* success */
      }, function(error) { /* fail */
        console.log(error);
      });

somebody please help me

@string-lzc
Copy link
Author

I have solved this problem. The scheme url should be encoding.like

startApp.set(encodeURI('baidumap://map/geocoder?address=北京市海淀区上地信息路9号奎科科技大厦&src=ios.fmc.capd'));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants