Help get this topic noticed by sharing it on Twitter, Facebook, or email.
I’m sad

isAppInstalled not working for my safari staging extension.

The function call is returning false even after the extension is installed properly.

This is tied to the problem where the extension is not available on Safari 8 on some pages. We have a way to test if the extension is installed on our website. We use this right after the install process to ensure that the user has this setup correctly.

However this call is failing and returns false even if the extension is installed correctly. Now this is happening on the page where the extension install began from. If I open a fresh new tab, the call responds with true.

This seems to be related to
https://getsatisfaction.com/crossride...
and
https://getsatisfaction.com/crossride...

I have also tried to change my install process where I open the tab (to our website) from the extension itself so I can show a confirmation message. However the extension check fails here as well.
1 person has
this problem
+1
Reply
  • Shlomo (Official Rep) March 31, 2015 08:08
    Hello Abhishek,

    I understand that you are having an issue with CrossriderAPI.isAppInstalled. Usually, this works without problems and hence in order to assist further I need to take a closer look.

    Therefore, please provide as much of the following information as possible and I will investigate:

    1. The extension id

    2. The file/line number where the code snippet can be found

    3. Which browser and operating system you are testing on, including version numbers

    4. The exact steps for reproducing the problem

    5. Any additional useful data, such as URLs, screenshots, videos, ...

  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated indifferent, undecided, unconcerned happy, confident, thankful, excited kidding, amused, unsure, silly

  • 1. The extension id -- 68111

    2. The file/line number where the code snippet can be found -- N/A as I am calling isAppInstalled from my website using crossrider APIs

    3. Which browser and operating system you are testing on, including version numbers - Safari 8 on Yosemite

    4. The exact steps for reproducing the problem -- Install the extension from my website and then let the extension open a new tab after install. This new tab opens to our website itself where the isAppInstalled code runs. This code returns with a false on the extension install.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated indifferent, undecided, unconcerned happy, confident, thankful, excited kidding, amused, unsure, silly

  • Shlomo (Official Rep) April 01, 2015 18:02
    Hello Abhishek,

    I tested with our demo extension on OSX 10.10/Safari 8 and test page and the extension is detected as expected (see image).

    In absence of access to the installation page, I can only guess it's an issue with your setup.

  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated indifferent, undecided, unconcerned happy, confident, thankful, excited kidding, amused, unsure, silly

  • Shlomo,

    Did you open this webpage from the extension after it gets installed?

    In my extension post install I call the following to open the page to my website.
    appAPI.openURL({
    url: 'http://www.mywebsite.com/installpagec...',
    where: "tab",
    focus:true
    });

    Bear in mind, not to use the Thank You page setting for this. Open it from the background to the URL. I do this as I have a need to send the user to a dynamic URL.

    Let me know if that works as well.

    I do understand the limitation in not being able to share code. Maybe we can setup a session where I screenshare this with you.

    Thanks for your help
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated indifferent, undecided, unconcerned happy, confident, thankful, excited kidding, amused, unsure, silly

  • Shlomo (Official Rep) April 02, 2015 08:05
    Hello Abhishek,

    I reproduced the scenario as suggested, i.e. I cloned the original demo extension, removed the TY page and added the background code to open the test page. As before the results show that it works as expected (see image).

    Are you running your post installation test page in a protected environment or localhost? Maybe this is causing you the issue.

  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated indifferent, undecided, unconcerned happy, confident, thankful, excited kidding, amused, unsure, silly

  • Shlomo,

    Can you elaborate on protected environment? Our website loads up on https, would that have anything to do with it? Its not on localhost.

    Can you share the test code you tried? I will deploy the page in our environment and try it out.

    That will help me compare and debug.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated indifferent, undecided, unconcerned happy, confident, thankful, excited kidding, amused, unsure, silly