当前位置:网站首页>[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
边栏推荐
- 简易版 微信小程序开发之for指令、上传图片及展示效果优化
- [mathematical logic] propositional logic (propositional logic reasoning | formal structure of reasoning | inference law | additional law | simplification law | hypothetical reasoning | refusal | disju
- User value is the last word in the competition of mobile phone market
- [MySQL] the difference between left join, right join and join
- The latest analysis of the main principals of hazardous chemical business units in 2022 and the simulated examination questions of the main principals of hazardous chemical business units
- ffmpeg下载安装教程及介绍
- Hutool dynamically adds scheduled tasks
- FileZilla Client下載安裝
- shardingsphere动态数据源
- Is pytorch difficult to learn? How to learn pytorch well?
猜你喜欢
Téléchargement et installation du client Filezilla
2022 tea master (intermediate) examination questions and analysis and tea master (intermediate) practical examination video
TCP/IP模型中的重磅嘉宾TCP--尚文网络奎哥
Table structure of Navicat export database
Web会话管理安全问题
pytorch开源吗?
IPv6过渡技术-6to4手工隧道配置实验--尚文网络奎哥
ffmpeg下载安装教程及介绍
没有sXid,suid&sgid将进入险境!-尚文网络xUP楠哥
Ffmpeg download and installation tutorial and introduction
随机推荐
FileZilla Client下載安裝
numpy之 警告VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences
Debug: CD cannot be used in kaggle
How to download pytorch? Where can I download pytorch?
Table structure of Navicat export database
MongoDB基本操作【增、删、改、查】
FileZilla Client下载安装
Dynamic programming: Longest palindrome substring and subsequence
Ffmpeg one / more pictures synthetic video
PHP generates PDF tcpdf
Latest version of NPM: the "NPM" item cannot be recognized as the name of a cmdlet, function, script file, or runnable program. Please check
SAP UI5 应用开发教程之一百零五 - SAP UI5 Master-Detail 布局模式的联动效果实现明细介绍
递归:深度优先搜索
CEPH Shangwen network xUP Nange that releases the power of data
NPM: the 'NPM' item cannot be recognized as the name of a cmdlet, function, script file, or runnable program. Please check the spelling of the name. If the path is included, make sure the path is corr
Dynamic programming: longest common substring and longest common subsequence
docker安装及启动mysql服务
Use three JS make a simple 3D scene
2020-01-01t00:00:00.000000z date format conversion
Elsevier latex submitted the article pdftex def Error: File `thumbnails/cas-email. jpeg‘ not found: using draf