polymerfire icon indicating copy to clipboard operation
polymerfire copied to clipboard

Polymerfire on iPhone iOS

Open ghost opened this issue 9 years ago • 9 comments

Description

Are iPhone browsers supported, safari and chrome?

I'm having trouble getting my app working on my phone or in a iPhone emulator. Im just trying to display the [[user.uid]] and nothing's appearing.

Not sure if this is a issue or just not supported.

I can't get the auth to login or create a new user.

When just using the standard web SDK I can't get any method to work.

  signOut: function()
  {
    firebase.auth().signOut();
  },

  signInAnon: function()
  {
    firebase.auth().signInAnonymously().then(function(user) {
      console.log('loggedin');
    }); 
  },


  ready: function()
  {


      // Initialize Firebase
      var config = {
        apiKey: "<firebase value>",
        authDomain: "etc",
        databaseURL: "etc",
        storageBucket: "etc",
      };
      firebase.initializeApp(config);
      var that = this;
    firebase.auth().onAuthStateChanged(function(user) {
      console.log(user);
      alert('hello' + user);
      if (user) {
        // User is signed in.
        that.set('user', user);
      } else {
        // No user is signed in.
      }
    });
  }

ghost avatar Jul 24 '16 18:07 ghost

I am actually experiencing the same issues, even the resulting website of the codelab is not working as expected on iOS Safari. For testing use this link, it is the reference link from the codelab.

Is anybody aware whether this is a gerneral Safari issue or is it just occuring on the iOS version?

stemuk avatar Jul 25 '16 20:07 stemuk

PolymerFire should be supported everywhere Polymer is, which includes iOS Safari. If it's not working, there may be a bug either in Polymer or PolymerFire.

On Mon, Jul 25, 2016 at 1:59 PM stemuk [email protected] wrote:

I am actually experiencing the same issues, even the resulting website of the codelab https://codelabs.developers.google.com/codelabs/polymer-firebase-pwa/index.html is not working as expected on iOS Safari. For testing use this http://note-app-firebase-3a483.firebaseapp.com link, it is the reference link from the codelab.

Is anybody aware whether this is a gerneral Safari issue or is it just occuring on the iOS version?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/firebase/polymerfire/issues/90#issuecomment-235083256, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAD_gXMe__6eDzV_5RadoxaaNFKow-Qks5qZSOlgaJpZM4JTok0 .

mbleigh avatar Jul 25 '16 21:07 mbleigh

I would expect the bug to be in Polymerfire, scince the demo app itself (paper-fab, cards, toolbar) is working, creating a new note however isn't. This probably points at an issue on the databinding in firebase-query, but a more in-depth testing might be helpful there. With the rollout of Safari 10 and webcomponent v1 support those bugs will hopefully belong to the past ;)

stemuk avatar Jul 25 '16 21:07 stemuk

Same here

The codelab doesnt fully work for Safari 9 on mac Showing some errors on Inspect Elements

liarsing avatar Aug 21 '16 03:08 liarsing

Having the same issue. The project renders differently between polymer serve and firebase serve. With firebase serve generating more issues.

mattprivman avatar Sep 07 '16 23:09 mattprivman

same issue. I use signInWithEmailAndPassword and auth.createUserWithEmailAndPassword on one project. My project doesn't work on IOS safari.

Geoffrey-Pliez avatar Sep 13 '16 12:09 Geoffrey-Pliez

Same problem here. Both on IOS safari and IOS chrome. Sign in with Google or Facebook doesn't work either.

rditerwich avatar Sep 29 '16 16:09 rditerwich

This may be the iOS 10 javascript core issue described here: https://github.com/webcomponents/webcomponentsjs/issues/617

nevella avatar Oct 01 '16 17:10 nevella

What's the status of this?

oneezy avatar Dec 16 '16 05:12 oneezy