Skip to content

fix: fix the workflow of preview-sync hook #4734

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

Merged
merged 1 commit into from
Jun 18, 2019

Conversation

Fatme
Copy link
Contributor

@Fatme Fatme commented Jun 18, 2019

The kinvey-nativescript-sdk plugin relies on preview-sync hook and mainly on platform property from hookArgs. This PR changes the workflow of preview-sync hook and makes it the same as in NativeScript v5.4.0. In NativeScript v5.4.0 the hook is executed when pubnub reports the device that the QR code is scanned with. This way we're able to get the platform from device and adds it to the hookArgs passed to the hook.

PR Checklist

What is the current behavior?

What is the new behavior?

Fixes/Implements/Closes #[Issue Number].

The `kinvey-sdk` plugin relies on `preview-sync` hook and mainly on platform property from `hookArgs`. This PR changes the workflow of `preview-sync` hook and makes it the same as in NativeScript v5.4.0. In NativeScript v5.4.0 the hook is executed when pubnub reports the device that the QR code is scanned with. This way we're able to get the platform from device and adds it to the `hookArgs` passed to the hook.
@cla-bot cla-bot bot added the cla: yes label Jun 18, 2019
@rosen-vladimirov rosen-vladimirov merged commit fc74281 into feature/webpack-only Jun 18, 2019
@rosen-vladimirov rosen-vladimirov deleted the fatme/fix-preview-sync-hook branch June 18, 2019 05:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants