GithubHelp home page GithubHelp logo

willbetheone / tool-iospusher Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fallending/tool-iospusher

0.0 0.0 0.0 418 KB

iOS苹果远程推送测试程序

License: MIT License

Objective-C 56.63% C 43.37%

tool-iospusher's Introduction

SmartPush

SmartPush, 一款IOS苹果推送测试程序, Mac OS下的apns工具APP

界面截图

image

使用方法

  1. 拖拽或者浏览测试证书和生产证书到指定输入框
    • 本机必须装有证书对应的私钥!!!!
  2. 填写对应的device token (device token 不同环境不同)
    • 获取device token
    // Receive deviceToken
    - (void)application:(UIApplication *)app didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
    	NSString *deviceTokenString = [deviceToken description];
    	deviceTokenString = [deviceTokenStr stringByReplacingOccurrencesOfString:@" " withString:@""];
    	deviceTokenString = [deviceTokenStr stringByTrimmingCharactersInSet:[NSCharacterSet characterSetWithCharactersInString:@"<>"]];
    
    	// deviceTokenString 就是我们要的, 比如:ff18c50062eaa7e7787fa466295ea7bd1b301c5ad3ea6552b4fee36dd0b056d6
    }
    
  3. 填写Payload
    • apns模版
    {
    	"aps":
    	{
    		"alert":"This is some fancy message.",
    		"badge":1,
    		"sound": "default"
    	}
    }
    
    • 当前咱们~
    {
    	"aps":
    	{
    		"alert":
    		{
    			"title":"消息标题",
    			"body":"消息内容"
    		},
    		"badge":1,
    		"sound": "default"
    	},
    	"ext":
    	{
    		"pushtime":"",
    		"url":"http:://打开页面的url"
    	},
    }
    
  4. 选择推送环境【测试环境、生产环境】
  5. 连接推送服务器
  6. 发送推送
  7. 手机接收推送消息
  8. 可能会遇到的问题:

知识点

  1. iOS开发API解读之SSL/TLS连接
  2. iOS开发中MQTTKit的TLS/SSL支持方案
  3. iOS开发适配HTTPS详细教程
  4. 史上最全解析Android消息推送解决方案
  5. 极光推送, 极光SDK
  6. iOS 推送证书的配置 从cer证书到pem文件

其他推送相关的项目

  1. Ionic的推送案例
  2. Java发送APNs的库
  3. Redth/PushSharp, 服务器端的推送库,支持APNs,GCM
  4. appleboy/gorush, zjnxyz/push
  5. Danny1451/ATRNotification, 自动阅读通知
  6. PerfectlySoft/Perfect-Notifications, 服务器端库,swift

tool-iospusher's People

Contributors

fallending avatar shaojiankui avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.