mirror of
https://github.com/timepill/timepill-app.git
synced 2025-04-30 09:59:31 +08:00
firebase 暂时屏蔽 android
This commit is contained in:
parent
4815749589
commit
c9ed559380
2 changed files with 10 additions and 6 deletions
6
index.js
6
index.js
|
@ -2,7 +2,7 @@
|
||||||
* @entry
|
* @entry
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {Alert} from 'react-native';
|
import {Alert, Platform} from 'react-native';
|
||||||
import {Navigation} from 'react-native-navigation';
|
import {Navigation} from 'react-native-navigation';
|
||||||
import {Icon, loadIcon} from './src/style/icon';
|
import {Icon, loadIcon} from './src/style/icon';
|
||||||
|
|
||||||
|
@ -91,7 +91,9 @@ function loginByPassword() {
|
||||||
|
|
||||||
Navigation.events().registerAppLaunchedListener(async () => {
|
Navigation.events().registerAppLaunchedListener(async () => {
|
||||||
|
|
||||||
firebase.crashlytics().enableCrashlyticsCollection();
|
if(Platform.OS === 'ios') { //todo: android会弹出设备不支持 gppgle play 服务,暂时没解决
|
||||||
|
firebase.crashlytics().enableCrashlyticsCollection();
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await loadIcon();
|
await loadIcon();
|
||||||
|
|
|
@ -141,10 +141,12 @@ export default class NotificationPage extends Component {
|
||||||
|
|
||||||
console.log(user, user.email);
|
console.log(user, user.email);
|
||||||
|
|
||||||
firebase.crashlytics().setUserIdentifier(user.id.toString());
|
if(Platform.OS === 'ios') { //todo: android会弹出设备不支持 gppgle play 服务,暂时没解决
|
||||||
firebase.crashlytics().setUserName(user.name);
|
firebase.crashlytics().setUserIdentifier(user.id.toString());
|
||||||
//todo:现在用户信息里没有 email
|
firebase.crashlytics().setUserName(user.name);
|
||||||
//firebase.crashlytics().setUserEmail(user.email);
|
//todo:现在用户信息里没有 email
|
||||||
|
//firebase.crashlytics().setUserEmail(user.email);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue