Comments (12)
In addition, I git your code, but still not work, <Fragaria/Fragaria.h> is not found. I have pod update successfully with this note:
Analyzing dependencies
Downloading dependencies
Installing KVOController (1.0.3)
Installing Mantle (2.0.6)
Installing pop (1.0.8)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There are 3 dependencies from the Podfile and 3 total pods installed.
How to use Knuff?
from knuff.
You can get an explanation for the error codes here.
What are you trying to do? Do you try to send push messages to the Knuff iOS app or an app you are developing yourself?
from knuff.
@blommegard I try to push messages to an app developed by myself.
from knuff.
@blommegard The Knuff client is install on my macbook.Will this work?
from knuff.
Running the binary downloaded from releases should work just fine, you don't have to clone and build it yourself.
How do you get the device token, is the certificate matching the app-id, tried both sandbox and production?
from knuff.
@blommegard I get the device token from Apple Sever callback didRegisterForRemoteNotificationsWithDeviceToken, and my device token is c91ea1071e33a075f3364b7afb786ae4e759480d3b773630d9650c5f78570a42
the code is:
-
(void)application:(UIApplication )application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken
{
NSString token = [NSString stringWithFormat:@"%@",deviceToken];std::string strToken([token UTF8String], [token length]);
GameLogic::getInstance()->getPushLogic()->handlePushToken(strToken);MFAppLogInfo(@"didRegisterForRemoteNotificationsWithDeviceToken:%s",strToken.c_str());
[self clearRemotePushNotifications];
}
handlePushToken will do something myself relative to token
from knuff.
So with "custom" selected and the correct certificate selected, you still get "BadDeviceToken"?
from knuff.
The truth is I send messages on mac, and I want to get a push on my iphone which has already installed the app developed by myself, I still need certificate? In "Knuff IOS" tab there is no way to add a certificate. I should use "custom" and add a certificate? But com.madebybowtie.Knuff-iOS is the only certificate I can choose
from knuff.
Yes, you need the certificate generated for your app, that is the one your server uses to send notifications to your users.
from knuff.
The procedure is my server sends messages to Apple push center(or something like this), and Apple push center pass it to me, I work for an organization, I could't get the certificate from my company. The certificate is used to publish app? In other words how can I get the right certificate?
from knuff.
You need to get the certificate from your company or generate a new one for your app at the Apple Developer Portal.
from knuff.
Thank you for your reply, I use your Knuff client on macbook to push message to Knuff IOS on iphone, it is OK. Probably because I use your push certificate, so I must replace it to my push certificate if I want to push on my app on iphone.
from knuff.
Related Issues (20)
- An SSL error HOT 4
- Can not choose certificate HOT 2
- Certificate expired in ver 1.3
- Support `.p8` key
- Test
- having an Issue
- Feature Request - Location Push support
- E
- It pops an alert saying Topic is missing HOT 5
- Enable dark mode breaks syntax highlighting HOT 3
- please take support FCM HOT 1
- Implement the feedback service
- How does it work ? HOT 1
- Unable to select identity HOT 1
- SSL error / Support for HTTP/2 ?
- How does it works?
- Apple Push Services: com.madebybowtie.Knuff-iOS expired
- Xcode project is unbuildable HOT 2
- contains a reference to a missing file 'Fragaria.framework'. HOT 1
- Fragaria HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from knuff.