Skip to content

Commit

Permalink
Merge pull request #109 from OneSignal/cd_update
Browse files Browse the repository at this point in the history
Generator Update
  • Loading branch information
rgomezp authored May 16, 2023
2 parents 5148dcc + 73c4a17 commit dd41f08
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"cra-template-typescript": "1.2.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-onesignal": "3.0.0-beta.3",
"react-onesignal": "file:../",
"react-scripts": "5.0.1",
"typescript": "^4.9.5",
"web-vitals": "^2.1.4"
Expand Down
5 changes: 2 additions & 3 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ function App() {
appId: "f5d104e9-7462-4bf7-adc8-4ca501cb55b2",
}).then(() => {
OneSignal.Debug.setLogLevel('trace');
// OneSignal.login("rodrigo");
// OneSignal.User.addAlias("myAlias", "1");
console.log(OneSignal.User.PushSubscription.token)
OneSignal.login("rodrigo");
OneSignal.User.addAlias("myAlias", "1");
});
} catch (e) {
console.log(e);
Expand Down
3 changes: 3 additions & 0 deletions example/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7509,6 +7509,9 @@ react-is@^18.0.0:
resolved "https://registry.yarnpkg.com/react-is/-/react-is-18.2.0.tgz#199431eeaaa2e09f86427efbb4f1473edb47609b"
integrity sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==

"react-onesignal@file:..":
version "3.0.0"

[email protected]:
version "3.0.0-beta.3"
resolved "https://registry.yarnpkg.com/react-onesignal/-/react-onesignal-3.0.0-beta.3.tgz#8e6533db26fd6547996a3fefffe267c451ce154e"
Expand Down
1 change: 0 additions & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ const init = (options: IInitObject): Promise<void> => {
});
};

type Action<T> = (item: T) => void;
interface AutoPromptOptions { force?: boolean; forceSlidedownOverNative?: boolean; slidedownPromptOptions?: IOneSignalAutoPromptOptions; }
interface IOneSignalAutoPromptOptions { force?: boolean; forceSlidedownOverNative?: boolean; isInUpdateMode?: boolean; categoryOptions?: IOneSignalCategories; }
interface IOneSignalCategories { positiveUpdateButton: string; negativeUpdateButton: string; savingButtonText: string; errorButtonText: string; updateMessage: string; tags: IOneSignalTagCategory[]; }
Expand Down

0 comments on commit dd41f08

Please sign in to comment.