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

tigram.isInstalled returns false, even when instagram is installed #2

Open
arifje opened this issue Sep 29, 2015 · 1 comment
Open

Comments

@arifje
Copy link

arifje commented Sep 29, 2015

Ti SDK 5.0.0
iOS 9.0

    // try open
    if (tigram.isInstalled) {
        tigram.openPhoto({
            media: screenshot.toBlob(),
            caption: caption
        });
    } else {
        alert("Instagram is not installed!");
    }   
@kosso
Copy link
Owner

kosso commented Sep 29, 2015

The module uses a very simple method to determine if Instagram is installed. It's possible that Apple have changed this, due to reports I read about other apps using this method to determine what other apps were installed on a device, without asking permission to do so.

Try using the Titanium method Ti.Platform.canOpenURL to see if the app can open the url: "instagram://app" - If so, it should be installed. http://docs.appcelerator.com/platform/latest/#!/api/Titanium.Platform-method-canOpenURL

So, if this isn't working, either Apple have changed the availability of canOpenURL, or the instagram app has changed its bundle url.

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

No branches or pull requests

2 participants