当前位置:网站首页>[Apple Photo Album push] IMessage group anchor local push
[Apple Photo Album push] IMessage group anchor local push
2022-07-03 03:49:00 【SenderN】
Recommended content IMESSGAE relevant
| What the author recommends | iMessage Apple Push software installation *** Click to view the content information required by the author |
|---|---|
| What the author recommends | 1. Home push content installation *** Click to view the content information required by the author |
| What the author recommends | 2. Album push *** Click to view the content information required by the author |
| What the author recommends | 3. Calendar push *** Click to view the content information required by the author |
| What the author recommends | 4. Virtual machines are easy to install *** Click to view the content information required by the author |
| What the author recommends | 5.iMessage *** Click to view the content information required by the author |
# The other party downloads zookeeper-3.4.12.tar.gz # decompression tar -zxvf zookeeper-3.4.12.tar.gz # Add contents cd zookeeper-3.4.12 # Special equipment and furnishing documents cp conf/zoo_sample.cfg conf/zoo.cfg # Create a journal directory mkdir logs # Bit by bit configuration vim conf/zoo.cfg # Roll call log directory dataDir=/Users/liang/software/zookeeper-3.4.12/logs # Start work , Half push half is the background start ./bin/zkServer.sh start # Procuratorial status ./bin/zkServer.sh status # The echo of the following : ZooKeeper JMX enabled by default Using config: /Users/liang/software/zookeeper-3.4.12/bin/…/conf/zoo.cfg Mode: standalone # Closed service ./bin/zkServer.sh stop # Start the service in the background #./bin/zkServer.sh start & Local push notification (Local Notification) 2. Remote push tell (Remote Notification) We are in the daily ordinary development , There may be more long-distance push operations , Remote push depends on potentiometer , You need to connect to receive , Do not connect local push 
Adding a good timer can push the funeral at a specified time , Usually, the use of the scene is mostly an alarm clock , Reminders, etc . Here are some ideas , especially iOS The system limits the number of local push registrations , The maximum registration volume is 64 strip . The voice of this film is our important teaching local push 2、 Local push (Local Push) Push without networking There is no need to establish a push relationship 3、push each other ( The tree model is based on iOS8.0 And above )
Registration notice , Obtain tenant authorization // stay AppDelegate.m in // iOS10.0 Import required #import - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [self registerAPN]; return YES; } // Registration notice - (void)registerAPN { if (@available(iOS 10.0, *)) { // iOS10 above UNUserNotificationCenter *center = [UNUserNotificationCenter currentNotificationCenter]; [center requestAuthorizationWithOptions:(UNAuthorizationOptionAlert + UNAuthorizationOptionSound) completionHandler:^(BOOL granted, NSError * _Nullable error) { }]; } else {// iOS8.0 above UIUserNotificationSettings *setting = [UIUserNotificationSettings settingsForTypes:UIUserNotificationTypeBadge | UIUserNotificationTypeSound | UIUserNotificationTypeAlert categories:nil]; [[UIApplication sharedApplication] registerUserNotificationSettings:setting]; } } Add notice - (void)addLocalNotice { if (@available(iOS 10.0, *)) { UNUserNotificationCenter *center = [UNUserNotificationCenter currentNotificationCenter]; UNMutableNotificationContent
*content = [[UNMutableNotificationContent alloc] init]; // Topic question content.title = @“ Test title ”; content.subtitle = @“ Subtitle of the unified examination notice ”; // The plot content.body = @“ The specific content of the test notice ”; // The sound // Acquiesce in the sound // content.sound = [UNNotificationSound defaultSound]; // Add custom sound content.sound = showAlertView]; } }]; }else { if ([[UIApplication sharedApplication] currentUserNotificationSettings].types == UIUserNotificationTypeNone){ NSLog(@“ Closed the notification ”); [self showAlertView]; }else { NSLog(@“ Opened the notice ”); } } } - (void)showAlertView { UIAlertController *alert = [UIAlertController alertControllerWithTitle:@“ notice ”
message:@“ Failure to obtain notification Authority , Please set it up ” preferredStyle:UIAlertControllerStyleAlert]; [alert addAction:[UIAlertAction actionWithTitle:@“ revoke ” style:UIAlertActionStyleCancel handler:nil]]; [alert addAction:[UIAlertAction actionWithTitle:@“ To set up ” style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) { [self goToAppSystemSetting]; }]]; [self presentViewController:alert animated:YES completion:nil]; } // If the user closes the receiving notification and obeys , This method can jump to APP Set the page to contain editing - (void)goToAppSystemSetting { dispatch_async(dispatch_get_main_queue(), ^{ UIApplication *application = [UIApplication sharedApplication]; NSURL *url = [NSURL URLWithString:UIApplicationOpenSettingsURLString]; if ([application canOpenURL:url]) { if (@available(iOS 10.0, *))
{ if ([application respondsToSelector:@selector(openURL:options:completionHandler:)]) { [application openURL:url options:@{} completionHandler:nil]; } }else { [application openURL:url]; } } }); } Parameter reference // The boss is iOS 8.0 Of ,iOS10.0 Similar to the above , For detailed use, you can find fireDate: When we set sail timeZone: Start time refers to the time zone repeatInterval: Push time repeatedly (NSCalendarUnit model ),0 Comprador does not repeat repeatCalendar: Repeat push time (NSCalendar Example ) alertBody: Inform the content alertAction: Event when unlocking sliding alertLaunchImage: Start the calendar , Set this field and click the notification to flash the patch alertTitle: Notification heading , share iOS8.2 In the future applicationIconBadgeNumber: When absorbing the notice App icon The angle sign of soundName:
Push is a voice prompt with , Set the default field to UILocalNotificationDefaultSoundName userInfo: Special contents of the funeral notice category: This feature is associated with registering notification types ,( Interested students will experience it by themselves , Elaborate in an ambiguous way ) apply iOS8.0 in the future region: Push coherence including positioning , See the above for specific use 【 Including anchor local push 】 apply iOS8.0 after regionTriggersOnce: Push coherent attribute with positioning , See the following for specific use 【 Local push with positioning 】 apply iOS8.0 after Notice the demonstration fill : To add a picture to a push , You can add the following code : //3. Load Images //3.1
Get pictures NSString * imageUrlString = @“https://img1.doubanio.com/img/musician/large/22817.jpg”; NSData *imageData = [NSData dataWithContentsOfURL:[NSURL URLWithString:imageUrlString]]; //3.2 Save pictures to sandbox NSString *documentPath = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES).firstObject; NSString *localPath = [documentPath
stringByAppendingPathComponent:@“localNotificationImage.jpg”]; [imageData writeToFile:localPath atomically:YES]; //3.3 Set notification attachment( The attachment ) if (localPath && ![localPath isEqualToString:@""]) { UNNotificationAttachment * attachment = [UNNotificationAttachment attachmentWithIdentifier:@“photo” URL:[NSURL URLWithString:[@“file://” stringByAppendingString:localPath]] options:nil error:nil]; if (attachment) { content.attachments = @[attachment]; } } @macbook software $ cd EndNote\ X9.3.1\ Update\ Installer
@macbook EndNote X9.3.1 Update Installer $ cd EndNote\ X9.3.1\ Updater.app @macbook EndNote X9.3.1 Updater.app $ cd Contents [email protected] Contents $ cd Resources [email protected] Resources $ ls Customizer.icns Patcher Help applyPatch English.lproj Patchfile.patch License Agreement.txt Update [email protected]“text/javascript”,@“text/html”, nil]]; NSMutableDictionary *dict = [NSMutableDictionary dictionary]; dict[@“id”] = @“123456789”;// You did it apple ID Number [mgr POST:@"http://itunes.apple.com/cn/lookup?
id=123456789" parameters:dict success:^(NSURLSessionDataTask * _Nonnull task, id _Nonnull responseObject) { // App_URL http://itunes.apple.com/lookup NSArray *array = responseObject[@“results”]; if (array.count != 0) {// First determine whether the number of people who rush back is empty It's empty when it's not on the shelf NSDictionary *dict = array[0]; if ([dict[@“version”] floatValue] > [subVersion floatValue]) { // If there's a new version Pay attention here if your version number is 1.1.1 perhaps 1.1.1.1 This style , You can't turn directly in time floatValue, Try to judge by comparison .
UIWindow *alertWindow = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; alertWindow.rootViewController = [[UIViewController alloc] init]; alertWindow.windowLevel = UIWindowLevelAlert + 1; [alertWindow makeKeyAndVisible]; UIAlertController *alert = [UIAlertController alertControllerWithTitle:@“ Renovation tips ” message:@“ Found this version . To ensure common use of various functions , Please update first .” preferredStyle:UIAlertControllerStyleAlert]; // Show popup
边栏推荐
- Filter
- [combinatorics] basic counting principle (addition principle | multiplication principle)
- Captura下载安装及在Captura配置FFmpeg
- MongoDB复制集【主从复制】
- [daily question] dichotomy - find a single dog (Bushi)
- How to download pytorch? Where can I download pytorch?
- Debug: CD cannot be used in kaggle
- 2022 mobile crane driver examination registration and mobile crane driver operation examination question bank
- Tidal characteristics of the Bohai Sea and the Yellow Sea
- 错误 C2694 “void Logger::log(nvinfer1::ILogger::Severity,const char *)”: 重写虚函数的限制性异常规范比基类虚成员函数
猜你喜欢

Recursion: quick sort, merge sort and heap sort

Table structure of Navicat export database

numpy之 警告VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences

Hutool dynamically adds scheduled tasks

pytorch开源吗?

CEPH Shangwen network xUP Nange that releases the power of data

Download and install node, NPM and yarn

Message queue addition failure

npm : 无法将“npm”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。

TCP/IP模型中的重磅嘉宾TCP--尚文网络奎哥
随机推荐
Error c2694 "void logger:: log (nvinfer1:: ilogger:: severity, const char *)": rewrite the restrictive exception specification of virtual functions than base class virtual member functions
Applet (continuous update)
[Blue Bridge Road -- bug free code] interpretation of some codes of matrix keyboard
Without sxid, suid & sgid will be in danger- Shangwen network xUP Nange
2022 polymerization process examination questions and polymerization process examination skills
Ffmpeg one / more pictures synthetic video
Ansible简介【暂未完成(半成品)】
FileZilla Client下載安裝
2022 P cylinder filling examination content and P cylinder filling practice examination video
Recursion: depth first search
MongoDB安装 & 部署
Advanced redis applications [password protection, data persistence, master-slave synchronization, sentinel mode, transactions] [not completed yet (semi-finished products)]
pytorch怎么下载?pytorch在哪里下载?
js中#号的作用
【DRM】DRM bridge驱动调用流程简单分析
记一次 .NET 差旅管理后台 CPU 爆高分析
Wechat applet + Alibaba IOT platform + Hezhou air724ug build a serverless IOT system (III) -- wechat applet is directly connected to Alibaba IOT platform aliiot
leetcode:动态规划模板
2022年已过半,得抓紧
[leetcode question brushing day 34] 540 Unique element in array, 384 Disrupt array, 202 Happy number, 149 Maximum number of points on a line