Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70924

Apple sign in not working in simulator and real device. But works in browser

$
0
0

Hi,
I am trying to create Sign in with Apple option for my ionic project. Trying out this with firebase. Downloaded the capacitor plugins from GitHub - rlfrahm/capacitor-apple-login: Capacitor Apple Login.
Followed the instructions given in this video, https://www.youtube.com/watch?v=nlk54-QkGk4.

After several modification, given below is my code:
async singInWithAppleNative() {
const provider = new OAuthProvider(‘apple.com’);
signInWithPopup(this.auth, provider)
.then(async (res) => {
console.log(res);
alert(JSON.stringify(res));
})
.catch((error) => {
console.error(error);
alert(error.message);
});
}

Running this in simulator and real device says,
“nw_connection_copy_connected_local_endpoint_block_invoke [C5] Connection has no local endpoint”

and alert popup displays the message “Firebase: error(auth/cancelled-popup-request)”.
Kindly help me to sort out the problem.

Thanks in advance.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 70924

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>