Skip to content

Commit 9d855d7

Browse files
Merge pull request #798 from back4app/bac-1336/andriod-push-notification
andriod push notification
2 parents 41c1943 + 39bf495 commit 9d855d7

6 files changed

Lines changed: 677 additions & 0 deletions

File tree

src/dashboard/Dashboard.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ const LazyAppSecurityReport = lazy(() => import('./AppSecurityReport/AppSecurity
8282
const LazyDatabaseProfile = lazy(() => import('./DatabaseProfiler/DatabaseProfiler.react'));
8383
const LazyEmailVerification = lazy(() => import('./Notification/EmailVerification.react'));
8484
const LazyEmailPasswordReset = lazy(() => import('./Notification/EmailPasswordReset.react'));
85+
const LazyPushAndroidSettings = lazy(() => import('./Push/PushAndroidSettings.react'));
8586

8687

8788
async function fetchHubUser() {
@@ -162,6 +163,7 @@ const preloadMap = {
162163
appPlan: () => import('./AppPlan/AppPlan.react'),
163164
emailVerification: () => import('./Notification/EmailVerification.react'),
164165
emailPasswordReset: () => import('./Notification/EmailPasswordReset.react'),
166+
pushAndroidSettings: () => import('./Push/PushAndroidSettings.react'),
165167
};
166168

167169
// Preload all routes with proper error handling and logging
@@ -504,6 +506,7 @@ class Dashboard extends React.Component {
504506
<Route path="push/activity/:category" element={<PushIndex />} />
505507
<Route path="push/audiences" element={<PushAudiencesIndex />} />
506508
<Route path="push/new" element={<PushNew />} />
509+
<Route path="push/android-settings" element={<LazyComponentWrapper><LazyPushAndroidSettings /></LazyComponentWrapper>} />
507510
<Route path="push/:pushId" element={<PushDetails />} />
508511

509512
<Route path="connect" element={<B4aConnectPage />} />

src/dashboard/DashboardView.react.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,7 @@ export default class DashboardView extends React.Component {
355355
{ name: 'Send New Push', link: '/push/new' },
356356
{ name: 'Past Pushes', link: '/push/activity' },
357357
{ name: 'Audiences', link: '/push/audiences' },
358+
{ name: 'Android', link: '/push/android-settings' },
358359
],
359360
},
360361
];

0 commit comments

Comments
 (0)