- App.tsx: full navigation (Auth stack + Main tabs with 5 screens) - Auth: LoginScreen, RegisterScreen, ForgotPasswordScreen - HomeScreen: dashboard with IoT metrics, weather widget, alerts, quick actions, sensors - MapScreen: interactive map with layer toggles (6 layers) - MarketplaceScreen: categories (6), products (5), search - ChatScreen: AI chat with quick prompts (4), bot responses - ProfileScreen: user info, stats, menu (9 items), logout - AlertsScreen: alert list with severity, acknowledge - SensorsScreen: sensor list with type filters (6 types), search - ZonesScreen: zone cards with stats - SettingsScreen: language picker (FR/EN/ES/DE), privacy, about - Stores: iotStore (sensors, zones, alerts), notificationStore, uiStore + i18n - Hooks: useSensors, useAlerts, useNotifications, useLocation - Components: Card, Button, LoadingSpinner, ErrorBoundary, Header - Services: iotService, notificationService (with axios API client) - Utils: formatters (temp, AQI, noise, dates), validators (email, password, IBAN) - Theme: colors.ts with full design system (Blue Ocean palette) - Ditto: fixed MongoDB connection, new JWT secrets, official gateway image
54 lines
2.3 KiB
Objective-C
54 lines
2.3 KiB
Objective-C
/*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
#import <React/RCTEventEmitter.h>
|
|
|
|
extern NSString *const RCTRemoteNotificationReceived;
|
|
|
|
@interface RCTPushNotificationManager : RCTEventEmitter
|
|
|
|
typedef void (^RCTRemoteNotificationCallback)(UIBackgroundFetchResult result);
|
|
|
|
+ (void)didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken;
|
|
+ (void)didFailToRegisterForRemoteNotificationsWithError:(NSError *)error;
|
|
/**
|
|
* Triggers remoteNotificationReceived or localNotificationReceived events.
|
|
*
|
|
* Call this method from UNUserNotificationCenterDelegate's
|
|
* `userNotificationCenter:didReceiveNotificationResponse:withCompletionHandler:` in order to process a user tap on a
|
|
* notification.
|
|
*
|
|
* To process notifications received while the app is in the foreground, call this method from
|
|
* `userNotificationCenter:willPresentNotification:withCompletionHandler:`. Use the completion handler to determine if
|
|
* the push notification should be shown; to match prior behavior which does not show foreground notifications, use
|
|
* UNNotificationPresentationOptionNone.
|
|
*
|
|
* If you need to determine if the notification is remote, check that notification.request.trigger
|
|
* is an instance of UNPushNotificationTrigger.
|
|
*/
|
|
+ (void)didReceiveNotification:(UNNotification *)notification;
|
|
/**
|
|
* Call this from your app delegate's `application:didReceiveRemoteNotification:fetchCompletionHandler:`. If you
|
|
* implement both that method and `userNotificationCenter:didReceiveNotificationResponse:withCompletionHandler:`, only
|
|
* the latter will be called.
|
|
*/
|
|
+ (void)didReceiveRemoteNotification:(NSDictionary *)notification
|
|
fetchCompletionHandler:(RCTRemoteNotificationCallback)completionHandler;
|
|
|
|
/**
|
|
* Call this in `userNotificationCenter:didReceiveNotificationResponse:withCompletionHandler:`
|
|
* to get the correct value from .getInitialNotification in JS.
|
|
*/
|
|
+ (void)setInitialNotification:(UNNotification *)notification;
|
|
|
|
/** DEPRECATED. Use didReceiveNotification instead. */
|
|
+ (void)didReceiveLocalNotification:(UILocalNotification *)notification RCT_DEPRECATED;
|
|
/** DEPRECATED. Use didReceiveNotification instead. */
|
|
+ (void)didReceiveRemoteNotification:(NSDictionary *)notification RCT_DEPRECATED;
|
|
|
|
@end
|