Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It pops an alert saying Topic is missing #111

Open
Kushal-786 opened this issue Mar 9, 2023 · 5 comments
Open

It pops an alert saying Topic is missing #111

Kushal-786 opened this issue Mar 9, 2023 · 5 comments

Comments

@Kushal-786
Copy link

I tried sending push but it shows an alert with 400 code and shows Topic is missing but I am not able to add topic since the field is disabled.

@nmtitov
Copy link

nmtitov commented Mar 14, 2023

Same here, can't edit topic

@Dast1Woop
Copy link

Same here, can't edit topic

@Kushal-786 @nmtitov
It is a problem when using the development certification(aps_development.cer).
You can add the following code :
if(0 == topic.length) { topic = @"your app bundle id"; }
above the code:
if (topic) { [request addValue:topic forHTTPHeaderField:@"apns-topic"]; }
Then, choose the development certification, fill in token, and click "Push" btn.
It works now!

@Dast1Woop
Copy link

I have fix topic error(400) by optimize user interaction:
https://github.com/Dast1Woop/Knuff

@phuongnguyenzoi
Copy link

@Dast1Woop Hey, can you tell how can I run your fork? Like compile it into application for use

@Dast1Woop
Copy link

Dast1Woop commented Sep 13, 2023

@Dast1Woop Hey, can you tell how can I run your fork? Like compile it into application for use
@phuongnguyenzoi

  1. excute:pod install
    at the root path(where you can see podfile below) use terminal.
  2. Then open Knuff.xcworkspace file with Xcode and run it(press"cmd + R" or click"Product-Run"of the menu).
  3. fill in infomation needed in the running knuff app as showed in the readme

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants