lisa3907 / dotnet.push Goto Github PK
View Code? Open in Web Editor NEW.net core push service library for server c#
Home Page: https://www.odinsoft.co.kr
License: MIT License
.net core push service library for server c#
Home Page: https://www.odinsoft.co.kr
License: MIT License
A small suggestion
New APS Rules
//iOS 10 and beyond (iOS 7, iOS 8, iOS 9 can use this template)
{
"Aps": {
"Alert": {
"Title": "title".
"Subtitle": "subtitle".
"Body": "content"
}
"Badge":1,
"Sound": "default"
}
}
//iOS before 10
{
"Aps": {
"Alert", "content".
"Badge":1,
"Sound": "default"
}
}
Even support extended generic objects as additional data,
such as
"Userinfo": {
"Playid": "123".
"Username": "tom"
"Sex": 1
}
Or, alternatively, APS packets are generated from the outside, and this project is only transmitted as a channel
Now, I follow this line of thought to modify it to better support my system.
Hi,
I was going through your code and realized that it would only work on windows, am I right?
and if so, could you make it linux compatible?
thanks in advance
I'm sure this is a stupid mistake on my part. When I use IosPushNotifyAPNs on my local Windows 10 development machine, all is well. When I publish my web api controller onto a Server 2019 system (hosted using IIS; dotnet-hosting-2.2.4-win is installed), I get a "Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException: The system cannot find the file specified." I don't think it's a simple permissions issue; the App Pool ID is a domain account with admin privileges on the server; I can actually open the p8 file and read the contents from within my code.
Any suggestions would be greatly appreciated!
code:
var _secret_key_blob = Convert.FromBase64String("MIGTAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBHkwdwIBAQQgnrdP+CjGzu7/o1Qs");
PrivateKey = CngKey.Import(_secret_key_blob, CngKeyBlobFormat.Pkcs8PrivateBlob);
error:
System.Security.Cryptography.CryptographicException:“Error in encoding or decoding.”
Is it related to "Pkcs8PrivateBlob"?
Please take a look at it. Thank you.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.