2017-05-07 92 views
0

您好, 我最近开始不得不使用Firebase,特别是他的通知系统。当我建立我的项目的问题到了,这里是错误使用Google Firebase通知生成错误

Error: URL scheme needed for Google Sign-In not included in your app's Info.plist. Please refer to the Google Sign-In SDK documentation for more information.' 
    *** First throw call stack: 
    (0x1877c2fe0 0x186224538 0x1877c2f28 0x10017c694 0x10017c114 0x18775d5f4 0x18775cd08 0x18775ca84 0x1877cb7a8 0x1876a095c 0x1881b2930 0x100089078 0x100087dac 0x100087aa4 0x100025f64 0x1000265b8 0x18d9654dc 0x18db71678 0x18db77120 0x18db8bc58 0x18db743b4 0x18936b884 0x18936b6f0 0x18936baa0 0x18777142c 0x187770d9c 0x18776e9a8 0x18769eda4 0x18d95e65c 0x18d959330 0x100027fd0 0x1866ad59c) 
    libc++abi.dylib: terminating with uncaught exception of type NSException 
    (lldb) 

AppDelegate.swift

https://pastebin.com/z3v3FHc5

谢谢你提前为您的帮助!

回答

0

OK,这么多对我来说,在Appdelagate我导入的文件,它是没有必要的:/ 谢谢您的帮助:d

BEFORE:

import UIKit 
    import CoreData 

    import UserNotifications 
    import Firebase 
    import FirebaseInstanceID 
    import FirebaseMessaging 

AFTER :

import UIKit 
    import CoreData 

    import UserNotifications 
    import Firebase 
    //import FirebaseInstanceID 
    import FirebaseMessaging 

现在,它的工作,谢谢:)

0

The documentation

谷歌登入需要自定义URL方案被添加到您的项目。要添加自定义方案:

  1. 打开您的项目配置:双击左树视图中的项目名称。从TARGETS部分选择您的应用,然后选择 选择Info选项卡,然后展开URL Types部分
  2. 单击+按钮,并为您的反向客户端ID添加URL方案。要找到此值,请打开Goog​​leService-Info.plist 配置文件,然后查找REVERSED_CLIENT_ID键。复制该密钥的 值,并将其粘贴到 配置页面上的URL方案框中。将其他字段留空。
+0

谢谢,但我不希望Google登录... – POL