Coder Social home page Coder Social logo

Comments (7)

Meiguro avatar Meiguro commented on July 23, 2024

Thanks for reporting with detailed information. I'll have to look into why it's occurring more often on Android. If I understand correctly, they are never able to see any views of your App, it is immediately "Disconnected"?

from pebblejs.

randomite avatar randomite commented on July 23, 2024

That is correct, I am using PebbleJs, and my app is called "Where Am I?"

from pebblejs.

Meiguro avatar Meiguro commented on July 23, 2024

Well, this is a funny one. Using adb logcat, I found that the Android app experiences an exception when trying to load your app likely because it has a question mark in its name. It took me awhile to realize this because after this exception occurs, javascript is completely disabled for any kind of pebble app. This tricked myself into thinking pebble.js wasn't working entirely. A "Force Stop" on the Android app is required to get out of this bad state.

In any case, we can test this hypothesis. Could you try renaming your app to "Where Am I" and publishing that on the app store? I believe it's the longName that must be changed, but you can remove the question mark from both longName and shortName just to be safe. I can test your app after you've published it. If it's fixed, I'll be filing a bug report for the Pebble Android App.

from pebblejs.

randomite avatar randomite commented on July 23, 2024

Hey Meiguro, I just published a release and took the question mark out of the longName and the shortName. The app is public on Android and waiting for JavaScript bundling on iOS.

Let me know if it works.

from pebblejs.

Meiguro avatar Meiguro commented on July 23, 2024

Success, it works with my Android phone! The first run will produce NaN for long and lat, but subsequent runs will correctly show my location, nice work.

Your Android users will need to unload the app and then try to load the app again; loading apps from the locker downloads the latest version. They should also force stop the app or reboot the phone too.

from pebblejs.

randomite avatar randomite commented on July 23, 2024

Will automatic app updates work, or will have to ask the users to manually unload and reload? Also will there be a fix to the "question mark bug" because I wanted to add that back to the title of the name. Thanks!

from pebblejs.

Meiguro avatar Meiguro commented on July 23, 2024

Yes, auto update should work, but only if they're using the 2.3 beta. I would probably send a mass email suggesting to unload and reload. I'd also throw in the tip to force stop and reboot if they are stilling having the issue because they may have their JavaScript temporarily disabled by the bug.

Haha, yes, there will definitely be a fix for the question mark bug. If not, I'll keep pestering. You can even send a reminder to [email protected] if it's still an issue weeks from now. In any case, I'll let you know when it's fixed in this thread. While this ticket is closed, it should still email you.

from pebblejs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.