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

[Android] IntentAndroid cannot read property 'canopenurl' of undefined #11278

Closed
leoabacade opened this issue Dec 3, 2016 · 7 comments
Closed
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@leoabacade
Copy link

my code:

`var url = 'geo:'+this.state.locationLat+','+this.state.locationLng;

    IntentAndroid.canOpenURL(url, (supported) => {
        if (!supported) {
            console.log('Can\'t handle url: ' + url);
        } else {
            IntentAndroid.openURL(url);
        }
    });`

error:
15354275_120300000977496341_573433347_o png

@rmevans9
Copy link
Contributor

rmevans9 commented Dec 3, 2016

What version of RN are you running?

@rmevans9
Copy link
Contributor

rmevans9 commented Dec 3, 2016

I am assuming this is RN >= 0.37.0. If so please check the breaking changes under 0.37.0

https://github.com/facebook/react-native/releases/tag/v0.37.0

@damusnet
Copy link
Contributor

damusnet commented Dec 4, 2016

@facebook-github-bot answered

@facebook-github-bot
Copy link
Contributor

Closing this issue as @damusnet says the question asked has been answered. Please help us by asking questions on StackOverflow. StackOverflow is amazing for Q&A: it has a reputation system, voting, the ability to mark a question as answered. Because of the reputation system it is likely the community will see and answer your question there. This also helps us use the GitHub bug tracker for bugs only.

@facebook-github-bot facebook-github-bot added the Ran Commands One of our bots successfully processed a command. label Dec 4, 2016
@leoabacade
Copy link
Author

after upgrade to 0.38, IntentAndroid ( for opening google map )is not working any more
but it was functionally @ RN version 0.28
right now I switch to Linking https://facebook.github.io/react-native/docs/linking.html to open the map

not sure I should ask this question @ stackoverflow, since it looks like a bug

@leoabacade
Copy link
Author

@rmevans9, thank you

@dimoreira
Copy link

dimoreira commented Apr 27, 2017

I'm using react-native version 0.42.3 with Android and receiving the similar error:

undefined is not a function (evaluating 's.Linking.openUrl(e)')

I saw in the source for the 0.42.3 version that the Linking.openURL method is already implemented. Why can't I use with Android?

References:

@facebook facebook locked as resolved and limited conversation to collaborators May 24, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

6 participants