1
我想添加firebase通知在科爾多瓦應用程序ios,但我不能。 這是我做過的步驟:firebase通知科爾多瓦ios集成
1 - 創建的火力點項目
2複製配置文件Googleservice-Info.plist中
3安裝插件科爾多瓦FCM
4中添加文件驗證碼index.js
window.FirebasePlugin.grantPermission();
FCMPlugin.onNotification(function(data){
if(data.wasTapped){
//Notification was received on device tray and tapped by the user.
console.log(JSON.stringify(data));
}else{
//Notification was received in foreground. Maybe the user needs to be notified.
console.log(JSON.stringify(data));
}
});
FCMPlugin.subscribeToTopic(topicSub);
5安裝的CocoaPods 6-執行該命令:
pod init
7項文件PodFile我已經插入此代碼:
pod ’Firebase/Core’
pod 'Firebase/Messaging'
8吊艙安裝此COMAND:
pod install
10開的項目,.xcworkspace文件現在
的Xcode回到我這個錯誤:
diff: /../Podfile.lock: No such file or directory
diff: /Manifest.lock: No such file or directory
error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.
怎麼了?