Bind logged-in user IDs, attach segmentation tags, and query physical push tokens.
Bind user identity to push notifications, attach segmentation tags for targeted messaging, and query device push tokens. Requires OneSignal SDK integration.
Associate the current device with a logged-in user for targeted push notifications:
import nativine from 'nativine';
nativine.onesignal.setExternalUserId('user_10928');
Attach key-value tags used for audience segmentation in OneSignal dashboard:
import nativine from 'nativine';
nativine.onesignal.sendTag('plan', 'pro');
Unbind the user identity on logout to stop receiving personalized notifications:
import nativine from 'nativine';
nativine.onesignal.removeExternalUserId();