@amityco/ts-sdk-react-native 6.24.2-7ddc891.0 → 6.24.2-dc02f91.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js
CHANGED
|
@@ -9172,7 +9172,7 @@ const registerPushNotification = async (deviceToken) => {
|
|
|
9172
9172
|
else {
|
|
9173
9173
|
throw new ASCInvalidParameterError('Unsupported platform');
|
|
9174
9174
|
}
|
|
9175
|
-
const deviceId = getDeviceId();
|
|
9175
|
+
const deviceId = await getDeviceId();
|
|
9176
9176
|
const { data: { status, error }, } = await client.http.post('/v1/notification', {
|
|
9177
9177
|
userId: client.userId,
|
|
9178
9178
|
deviceId,
|
package/dist/index.esm.js
CHANGED
|
@@ -25243,7 +25243,7 @@ const registerPushNotification = async (deviceToken) => {
|
|
|
25243
25243
|
else {
|
|
25244
25244
|
throw new ASCInvalidParameterError('Unsupported platform');
|
|
25245
25245
|
}
|
|
25246
|
-
const deviceId = getDeviceId();
|
|
25246
|
+
const deviceId = await getDeviceId();
|
|
25247
25247
|
const { data: { status, error }, } = await client.http.post('/v1/notification', {
|
|
25248
25248
|
userId: client.userId,
|
|
25249
25249
|
deviceId,
|