나의 재물운? 연애운은?
AI가 봐주는 내 사주팔자 - 운세박사
const registerForPushNotificationsAsync = async () => {
let deviceToken = ‘’;
if (Constants.isDevice) {
const { status: existingStatus } =
await Notifications.getPermissionsAsync();
let finalStatus = existingStatus;
if (existingStatus !== ‘granted’) {
const { status } = await Notifications.requestPermissionsAsync();
finalStatus = status;
}
if (finalStatus !== ‘granted’) {
Alert.alert(
‘알림이 오지 않을 경우 휴대폰 설정에서 알림을 허용해주세요.’
);
return;
}
deviceToken = (await Notifications.getExpoPushTokenAsync()).data;
} else {
Alert.alert(‘푸쉬알림은 실제 기기에서만 가능합니다.’);
} if (Platform.OS === ‘android’) {
Notifications.setNotificationChannelAsync(‘default’, {
name: ‘default’,
importance: Notifications.AndroidImportance.MAX,
vibrationPattern: [0, 250, 250, 250],
lightColor: ‘transparent’,
});
} return deviceToken;
};
나의 재물운? 연애운은?
AI가 봐주는 내 사주팔자 - 운세박사