一旦我被引导到Facebook,Google或Twitter进行身份验证并提供我的凭据,那么在我被重定向的时候,所有显示的都是白屏.我想说它不会将我重定向到我的应用程序.
顺便说一下,当我在Galaxy S5手机上运行我的Ionic应用程序时会发生这种情况.当我在笔记本电脑上的Chrome上运行时,重定向工作正常.
这是我的代码.
ref.authWithOAuthPopup(provider, function(error, authData) {
if(authData){
$timeout(function(){
$location.path('tab/profile');
}, 1000);
} else {
$ionicPopup.alert({
title: 'Error',
template: 'Try logging in again.'
});
console.log(error);
}
});
Run Code Online (Sandbox Code Playgroud) 我正在使用ionic2.以下是所有产生的信息ionic info.我基本上处理两个不同的离子项目,我想同时为它们提供服务.8000这样做时,默认情况下会在端口上加载一个项目ionic serve.我尝试使用更改第二个端口ionic serve --port 8101.但这并没有启动第二个项目.
这是以下错误:
> ionic-hello-world@ ionic:serve /Users/vramos/Workspace/visitorapp
> ionic-app-scripts serve "--port" "8100"
[21:34:57] ionic-app-scripts 0.0.44
[21:34:57] watch started ...
[21:34:57] build dev started ...
[21:34:57] clean started ...
[21:34:57] clean finished in less than 1 ms
[21:34:57] copy started ...
[21:34:57] transpile started ...
events.js:160
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE 0.0.0.0:53703
at Object.exports._errnoException (util.js:1007:11)
at exports._exceptionWithHostPort (util.js:1030:20)
at Server._listen2 (net.js:1253:14)
at listen (net.js:1289:10) …Run Code Online (Sandbox Code Playgroud)