Ionic push service returns 301 - push-notification

I am trying to send push notifications to my iphone. I followed the instructions exactly as on the Ionic website, but when I do a CURL post to my app, the result is 301. Is there anything I have to do beside the instructions on their website listed here
It looks like a certificate problem, but for as I know I have a valid certificate for development purposes..

Sloppy. I was running the IOS project in production mode..

Related

Google Sign on OAuth using Firebase Auth on iOS/Cordova loads forever

We are using Firebase Auth on a Cordova app, and using it to handle Google sign in. On web, android, and even on iOS Safari, it works just fine. On our cordova iOS app though, logging in the first time will work fine if it makes you type in your email and password, but, if you go to log in and you get the "Choose an Account" screen on google to pick what email to sign in with, it ends up just loading forever when you pick the account.
Looking at the logs of what is happening, it is just calling https://accounts.google.com/_/signin/oauth and then nothing happens after that. The firebase handler URL is never called. There are no error messages in the console, nor do any of the Google requests returning errors in their responses.
We are using firebase hosting, for our web version, and for the firebase 'authDomain' (which is the same domain we are using for web).
iOS was previously working fine for us, but I'm not sure if it was iOS 16 that started the issue, or changes we made, or changes on Google's end.
Does anyone have any idea what could cause this?
We figured out the issue, it appears a cordova plugin we were using that had gotten upgraded had a bug in the new version that stopped custom url schemes from working. We upgraded again to a version that had the bug fixed and the issue stopped.

stripe testing working fine on localhost but not working on server , its not dedecting testing amount from card

I have been trying to integrate strip payment gateway system. Everything working perfectly fine on localhost. But when i uploaded to the server it does not work.
Are you running it in HTTPS?
Is the rest of your frontend/backend working properly communicating with eachother?
Are you getting any errors?
Stripe Forces HTTPS for all services using TLS (SSL).It is like their requirement that must be fulfilled. Please Have a look Here.
So in order to make it work on a server, SSL should be installed on that server to work with Stripe.js libraries. In addition, all pages should be served over HTTPS. Further readings.. Here

HTTPS not working with WordPress click to deploy

I installed WordPress in Google Cloud Plattform using the feature "Click to Deploy".
But I need my website work with HTTPS. So I get a certificate with Let's encrypt and I followed the instructions in https://cloud.google.com/appengine/docs/standard/python/console/using-custom-domains-and-ssl to install it. All the process was successful but when I try to use my site with HTTPS I get the error "the site refused the connection".
This page https://cloud.google.com/solutions/connecting-securely says an option is use load balancing, but I believe I don't need that.
I applied this others instructions unsuccessfully:
www.wpbeginner.com/wp-tutorials/how-to-add-ssl-and-https-in-wordpress
www.elegantthemes.com/blog/tips-tricks/how-to-install-wordpress-on-google-cloud-and-why-thats-awesome
stackoverflow.com/questions/30075971/google-cloud-platform-cannot-get-https-ssl-working-on-wordpress-instance
My site works fine with HTTP.
I resolved my problem with this video: https://www.youtube.com/watch?v=7kLvD2mlmlk
The difference is I had to upload my crt and key files generated by Let's encrypt.
It was very difficult for me because I am not familiar with linux.
Regards.

SSL doesn't work for PassBook on iPhones

We built a passbook server on ASP.NET and it worked perfect in Dev. environment (without SSL certificate).
Passes that were generated could be seen on iPhone (in dev. mode) and on Mac.
Then we bought an SSL from Thawte (just for the domain) and added the certificate to IIS.
Of course, domain name is associated with the same IP address.
So now, when a link to the pass is generated on our server, normal iPhone can't download it, saying "Can't download the file".
If I click the same link in Safari on Mac, it is opened, when click it from Chrome - file is downloaded.
We've tried whatever was possible - enabling SSL 2.0, then SSL 3.0 on the server. We also trued disabling all SSL and enabling all TLS instead - no luck.
The aspnet passbook server is configured using the following.
SSL 2 (disabled)
SSL 3 (disabled)
TLS 1.0 (enabled)
TLS 1.1 (enabled)
TLS 1.2 (enabled)
here is the ssl test result: http://clip2net.com/s/3lUpIiq
seems pretty configured correctly.
the pass can be viewed/run to any mac safari browsers, downloads pretty well on non-safari browsers, but not on iphones.
it just says, cannot download the file. we have been trying to search the internet for possible answers but no luck.
the thing is that the browsers including mac safari recognizes well the certificate installed on the aspnet passbook server. but it seems iphones does not recognize the certificate.
Please advise what else could be done?
Thanks!
Does the webServiceUrl have 'https'? If not, it needs to (see https://developer.apple.com/library/ios/documentation/UserExperience/Reference/PassKit_Bundle/Chapters/TopLevel.html#//apple_ref/doc/uid/TP40012026-CH2-SW3).
Other than that, you should be able to view the error from Passbook in the console window in XCode.
We found out what the error was, when we tried to debug it on a MAC with XCode. What it showed was the pass was missing some required fields, in our case, the icon/logo image, and second was the pass registration endpoint had some errors.
We tried to fix these issues including our pass registration endpoint. After that, all went well and has been working smoothly.
Depending on the pass type, there must be required fields that must be met, else, the pass won't install correctly on production mode.
Many thanks!

Cannot connect to Facebook Connect

I'm using the following step by step guide to connect to Facebook Connect:
http://msdn.microsoft.com/en-us/windows/ee702803.aspx
However I have a problem at the 'Authentication and Initiating a Session' stage.
When I go through the steps, I click on 'Connect' in my browser, which opens a popup, where I login to Facebook and 'Allow' the application to access my account. I'm then redirected to the filename I specify in thw 2nd parameter of the javascript function 'FB.init'.
However, this page then displays:
Please sign-in with Facebook.
Why is this happening?
I'm developing this on localhost, I don't know if that could cause a problem? Please help! Thanks.
You actually can use localhost. The one problem you may have is that there is a bug with the Facebook Javascript SDK in internet explorer if you are on a port other than 80 or 443. http://github.com/facebook/connect-js/issues#issue/106
If you check out my Facebook .Net SDK on codeplex you can download the sample app. As it is configured it will run locally. The one thing is you need to set your site url and/or canvas url to point to http://localhost:port#/
Do download the sample go to: http://facebooksdk.codeplex.com
I ran into a similar problem where I could not test Facebook on localhost. Due to security requirements from Facebook you must test from the domain you used to register your application.
Create a dev.yourname.com subdomain and test it there.

Resources