Skip to content

Commit

Permalink
Add OneSignal props to README
Browse files Browse the repository at this point in the history
  • Loading branch information
pedro-lb committed Aug 17, 2020
1 parent 5a18e8c commit ea03ffc
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ OneSignal.initialize('xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx', options);

Where options is:

```js
```ts
safari_web_id?: string;
subdomainName?: string;
allowLocalhostAsSecureOrigin?: boolean;
Expand Down Expand Up @@ -68,6 +68,25 @@ notifyButton?: {
}
```

And `OneSignal` object contains:

```ts
notificationPermission: string[];
registerForPushNotifications: () => Promise<any>;
getNotificationPermission: () => Promise<string>;
isPushNotificationsEnabled: () => Promise<boolean>;
isPushNotificationsSupported: () => boolean;
setSubscription: (unmute: boolean) => Promise<any>;
setEmail: (email: string) => Promise<string>;
getEmailId: () => Promise<string>;
getUserId: () => Promise<string>;
setExternalUserId: (externalUserId: string | number) => Promise<void>;
getExternalUserId: () => Promise<any>;
initialized: boolean;
sendTag: (key: string, val: string) => Promise<string>;
sendTags: (keyValues: object) => Promise<any>;
```

## Advanced Usage

### Player ID
Expand Down

0 comments on commit ea03ffc

Please sign in to comment.