Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

this should also update the device if the keys have changed #51

Open
github-actions bot opened this issue Dec 20, 2022 · 0 comments
Open

this should also update the device if the keys have changed #51

github-actions bot opened this issue Dec 20, 2022 · 0 comments
Labels

Comments

@github-actions
Copy link

currently it just tries to create the device every time

// TODO this should also update the device if the keys have changed

                const defaultDeviceNameFormat = `${platform} (${Device.deviceName})`;
                console.log("defaultDeviceNameFormat", defaultDeviceNameFormat);

                // create registration only if we have an expo token
                // TODO this should also update the device if the keys have changed
                // currently it just tries to create the device every time
                if (state.expoPushToken) {
                    apiService.device.create({
                        deviceKey: state.deviceKey,
                        name: defaultDeviceNameFormat,
                        token: state.expoPushToken,
                        nativeToken: state.nativePushToken,
                    });
                }

                return {
                    ...state,
@github-actions github-actions bot added the todo label Dec 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants