http://www.androidhive.info/2012/10/android-push-notifications-using-google-cloud-messaging-gcm-php-and-mysql/ 按照文章的链接的步骤,实现GCM-HTTP在client 和app server之间的部署.链接一下供须要的同学參考. 在从本地Server移植到web server遇到的问题: 1.Google Api Key是绑定serverIP的,所以在本地换到Web的时候,Google…
什么是GCM? Google Cloud  Messaging (GCM) 是Google提供的一个服务,用来从服务端向安卓设备发送推送通知. GCM分为客户端和服务端开发. 这里我们只介绍服务端开发.其实过程非常简单,只需利用PHP发送POST数据. 有两个关键地方需要获得一个是API Key 一个是Device ID 这个可以从安卓客户端开发者获得. class GCM { public $api_key = "AIzaSyAU3wZs9raik-mHQ"; function __…
最近在网上查了关于很多Android消息推送的资料,其中主要有四种方法. 1) 使用GCM服务(Google Cloud Messaging) 2) 使用XMPP协议(Openfire + Spark + Smack) 3) 使用MQTT协议 4) 使用HTTP轮循方式 以上这四种方法的优缺点大家都可以到网上搜到,这里提供一个参考的连接:http://blog.csdn.net/shagoo/article/details/7899466  在这里我将使用GCM服务(Google Cloud M…
本文转自:https://developers.google.com/cloud-messaging/gcm…
应该是目前为止全网最详细的GCM推送解析. GCM官方解释: https://developers.google.cn/cloud-messaging/?hl=zh-cn Send data from your server to your users' devices, and receive messages from devices on the same connection. The GCM service handles all aspects of queueing of mess…
注:本文翻译自Google官方的Android Developers Training文档,译者技术一般,由于喜爱安卓而产生了翻译的念头,纯属个人兴趣爱好. 原文链接:http://developer.android.com/training/cloudsync/gcm.html 谷歌云消息(GCM)是一个用来给Android设备发送消息的免费服务.GCM消息可以极大地提升用户体验.你的应用可以一直保持更新的状态而不用在唤醒无线电和在没有更新的使用对服务器发起询问等事情上消耗电量.同时,GCM可…
要将 Firebase 添加到您的应用,您需要有一个 Firebase 项目以及适用于您的应用的 Firebase 配置文件. 如果您还没有 Firebase 项目,请在 Firebase 控制台中创建一个.如果您已经有与自己的移动应用相关联的现有 Google 项目,请点击导入 Google 项目.如果没有,请点击添加项目. 点击将 Firebase 添加到您的 Android 应用,然后按设置步骤操作.如果您是导入现有 Google 项目,系统可能会自动执行这些操作,您只需下载配置文件即可.…
這一篇要討論如何使用Xamarin.Android 整合GCM以及Windows Azure來實作Android手機上的推播通知服務. 這篇文章比較著重概念的部分,在開始讀這篇之前,也可以先參考一下Xamarin網站上的文章原文來了解Android GCM的運作邏輯: Remote Notifications:An Overview of Remote Notifications in Xamarin.Android http://docs.xamarin.com/guides/cross-pl…
On Android and in Chrome (but not on iOS), it's possible to send push notifications with a PWA. We'll start by asking the user for permission to send them push notifications, and then look at how to intercept the push event in a service worker. We ca…
    我们的IOS移动应用要实现消息推送,告诉用户有多少条消息未读,类似下图的效果(笑果),特把APNS和Erlang相关解决方案笔记于此备忘.          上面图片中是Apple Notification在UI展现的形式之一,Notification共有三种形式:图标显示更新数字(badge),提示信息(alert),提示音(sound);      iOS Apple Push Notification Services (APNs)官方的开发文档位置在:[Apple Push No…
以前无论使用何种Google Play服务,都是直接在gradle文件中引用一个库. compile 'com.google.android.gms:play-services:9.4.0' 这直接导致放法数超过了65535,后来发现从6.5版本以后是可以按需引用的,如下: compile 'com.google.android.gms:play-services-ads:9.4.0' compile 'com.google.android.gms:play-services-auth:9.4.…
Android中的通知只有一种,就是Local Notifications,而iOS中除了Local Notifications外,还有一种Push Notifications.ios的这2种notification虽然最终的表现相同,都是给用户一个弹出了一条通知,但他们的目的和发出通知的方式完全不同.另外,还需要注意,iOS中还存在一个消息类NSNotification,这个类所指的“通知”和刚才提到的“通知”不同,它指程序逻辑之间的消息通知,是一种编程技术. Push Notificatio…
1.帮助文档参考: https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/ProvisioningDevelopment.html#//apple_ref/doc/uid/TP40008194-CH104-SW1 https://developer.apple.com/library/ios/documentation/N…
https://cloud.google.com/products/storage/ BigTable Cloud Bigtable 是 Google 面向大数据领域的 NoSQL 数据库服务.它也是为 Google 搜索.Analytics(分析).地图和 Gmail 等众多核心 Google 服务提供支撑的数据库. https://cloud.google.com/bigtable/docs/?_ga=2.253537231.-792515609.1538018833 Cloud Bigta…
push notifications https://developers.google.com/web/fundamentals/push-notifications/ Push API https://developer.mozilla.org/en-US/docs/Web/API/Push_API Notifications API https://developer.mozilla.org/en-US/docs/Web/API/Notifications_API…
分享一下Android依赖注入框架--Google升级版Dagger2框架 Google的Dagger2是对上一版squareup的Dagger改版,话不多说直接上项目代码. Dagger2源码 Dagger2-Demo…
Send Push Notifications to iOS Devices using Xcode 8 and Swift 3 OCT 6, 2016 Push notifications are a great way to ensure your users re-engage with your app every once in a while, but implementing them on iOS can be challenging, especially with all o…
Google也推出了云计算基础服务, 加上微软Azure,亚马逊AWS, 都齐活了. 下面是研究了一下对其的一个初步了解. 计算: Compute Engine     IaaS平台,提供VM,操作灵活, 一切配置都要DIY. Google App Engine  SaaS平台,直接跑应用的容易,Java/Python/Go/PHP, Go真是亲儿子,在Google这直接支持. Container Engine    主要为Docker服务,直接上传整个镜像 存储: Cloud SQL    …
一直以来APP希望按省市县推送Android push,只能自己分析用户经纬度,打tag发送. 现在终于有服务商提供了. 友盟消息推送 可以“按省推送”,很方便. 我为友盟做了PHP SDK(composer版),提供给大家使用,便于集成到正规项目里. 包:https://packagist.org/packages/sinkcup/umeng-message-sdk-php 开源代码:https://github.com/sinkcup/umeng-message-sdk-php 例子: 1.…
有一个很简单的方法在你的 Android 应用中实现 Google 搜索.在这个例子中,我们将接受用户的输入作为搜索词,我们将使用到 Intent.ACTION_WEB_SEARCH . GoogleSearchIntentActivity.java package com.technotalkative.googlesearchintent; import android.app.Activity;import android.app.SearchManager;import android.…
在运行下面的步骤之前,请确保: 1.你的项目已经激活了Google Cloud Storage和App Engine,包括已经创建了至少一个Cloud Storage bucket. 2.你已经下载了client库并解压了. 3.你已经安装并配置了最新的App Engine Java SDK. 运行LocalExample.java例子 LocalExample.java是一个非部署的例子,有助于快速测试和调查Cloud Storage的功能.除了Eclipse控制台输出它没有UI组件.(Clo…
先决条件 你需要下面的内容: 1.一个Google账户,比如来自Gmail.如果你没有,请在Google account signup site注册. 2.一个新的或已经存在的Google Developer Console项目.如果你没有一个存在的项目,在Google developer console中创建一个新项目. 3.对你的项目来讲可用的两个Cloud APIs:Google Cloud Storage和Google Cloud Storage JSON API.为了做到这点,请选择你…
Google Cloud Storage client是一个客户端库,与任何一个生产环境使用的App Engine版本都相互独立.如果你想使用App Engine Development server开测试你的代码,你必须使用App Engine SDK 1.8.1及更高版本的development server. 下载Google Cloud Storage client库 你可以使用流行的工具,比如Apache Maven,Apache Ivy,Git来下载库,或者你可以从Maven库手动下…
关于Google Cloud Storage Google Cloud Storage有益于大文件的存储与服务(serve).此外,Cloud Storage提供了对访问控制列表(ACLs)的使用,提供了对上传中断的恢复功能以及其他的特性.Google Cloud Storage client库对应用自动使用恢复功能,提供了一种健壮的导(stream)数据到Cloud Storage的方法. 关于client library Google Cloud Storage client库使你的应用可以…
原文网址:http://www.chinaapp.org/game/5594.html 作为一个专业的App开发者网站,竟然没有一篇讲述如何将Android App发布到Google Play的教程,这不允许出现,现在我们借力开发者的贡献将本文分享给更多的Android开发者. 相关教程推荐:苹果开发者如何将应用发布到Apple应用程序商店教程 还在苦恼于如何发布应用到Android市场吗?请跟随本教程,本教程将教你通过几个简单步骤完成发布应用到Android市场. 虽然步骤很简单,但也有相当多…
转自:http://cloudfields.net/blog/ios-push-notifications-encryption/ The serious pains of setting up a Remote Push Notification in an iOS app come not from coding the app itself. They mostly relate in making the intermediate environment to connect with…
目的: 使用putty连接Google Cloud 实例. 总说: 首先要用  PuTTYgen生成 private key  和 public key, 之后 登录Google Cloud 将生成的 public key导入,最后在putty里面导入private key,连接实例. 参考资料:https://cloud.google.com/compute/docs/instances/connecting-to-instance 分步解析: 1. 用  PuTTYgen生成 private…
宠物识别我们使用到了tensorflow object-detection API  (https://github.com/tensorflow/models/tree/master/research/object_detection) 其中的Quick Start 2向我们介绍了这个项目(https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/running_pets.md) 安装建议直…
首先使用Google Cloud SSH连接上去:1.切换到 rootsudo -i12.编辑ssh配置文件vi /etc/ssh/sshd_config13.修改以下内容即可PermitRootLogin yesPasswordAuthentication yes124.重启sshservice sshd restart…
Cloud Text-to-Speech 中使用了WaveNet,用于TTS,页面上有Demo.目前是BETA版 使用方法 注册及认证参考:Quickstart: Text-to-Speech 安装google clould 的python库 安装 Google Cloud Text-to-Speech API Python 依赖(Dependencies),参见github说明 ----其中包括了,安装pip install google-cloud-texttospeech==0.1.0 为…