I'm trying to figure out if there is a way to use jWebSocket to send Push Notifications from a web form to the Apple APNS servers. I can't seem to figure it out, and there doesn't seem to be any information on how to go about this elsewhere. I am using an XQuery written web application so they don't seem to have a build in capability for sockets, hence jWebSocket.
Can anyone suggest a tutorial or provide information on whether this is possible?
Related
I have recently been attracted by pushing custom daily notifications via WeChat from China. Now, I'm considering achieving this feature using the web techniques I have learned so far.
However, I have no clue and see rarely people sharing the correct way to do this.
I have found the following references | guidelines related to what I want to achieve:
using javascript service worker (reference link: link)
firebase cloud messaging (FCM)
some APIs to get the custom content (only need to know the customization of notification content, no need the API)
I know the following web techniques:
Javascript, HTML, CSS, Bootstrap, PHP, MYSQL
Firebase Cloud Messaging, and any other Firebase products
However, I still need some guidelines or references before I start building this pushing custom daily notification web app. It's because the references I found missing some of the main purposes of the app (app features will be mentioned in the later section). Also, I am not sure whether I should go for a JavaScript service worker or FCM. Therefore, I need some other suggestions before I can go on the right track.
This web application should achieve the following features:
Push notification every day morning at 10 o'clock
Push notification to phone
Custom notification content (e.g. inspirational quotes, weather, constellations luck, and so on)
I think that's all for the things I want to build. Please let me know if I missing something.
I have been making web applications for around 4 years now, and I have always had troubles setting up the Facebook web SDK.
But for my new application I really wanted to make the Facebook integration.
The problem I am facing now, is that I am using the JS SDK witch was fairly easy to set up, but now I want to build my backend to support it all. The flow I came up with was like this:
The user logs in
The user giving me their FB-id
A call from the back end create the new profile or logs if its a older user
The api gives back a api key for the other requestes.
The problem I see with this flow is, that if another person haves another users facebook id, they can obtain a api key for that user, just by sending the request with that id to the server.
How can I make this secure. I don't really thing that the docs on facebook are great, and the other tutorials on the web dos not cover this topic.
Thanks for the help guys!
So recently, I set up a NodeJS bot to link messages between a Discord chat and a Skype chat. Now, I'm pretty new to Javascript, and entirely new to NodeJS, so luckily for me, there's a framework already made called Spype. The discord side works by using Discord's bot API, so that side works totally fine. The Skype side, on the other hand, uses Skyweb to connect to the Skype web client. Now, that's all well and good, except that it uses actual Skype accounts to log in, and you can no longer create actual Skype accounts, only Microsoft accounts. (Those are the ones that start with "live:".) The problem is that apparently, these two account types use different login methods. Now, try as I might, I have not been able to get the REST stuff to work for the Microsoft account login. This is probably due to my lack of expertise in that area.
So either I need to get Skyweb to log in to Microsoft accounts (this is probably the easiest option, I feel like it should be easy, I just can't get it), or change the bot to use a totally different authentication system.
I really hope someone can help with this. Let me know if I left out any information.
Skyweb has been updated, the issue has been fixed.
I want to display the number of times a video has been viewed using the core reporting API via Javascript. However, the API is designed with OAuth, for building applications and not just logging into my account to get the event count.
Is there a way to login for just my account via Javascript?
Thanks,
Matthew.
I think what you are looking for is a Service account. To my knowledge you cant use a Service account with JavaScript due to security issues with the key file.
What you could try and do is to authenticate the script once using normal Oauth2 then save the refresh token to the file and hard code that into your script and send that. But I wouldn't recommend it as then anyone that checks your script will also be able to access it. So basically you have the same security issues you had with using a Service account.
As you can see doing what you are trying to do with JavaScript isn't really going to work. As you can see this is something I have also tried unsuccessfully in the past to do. I recommend you try and do this with some kind of server sided scripting language, like PHP.
I'm trying to create a webpage that can incorporate LinkedIn info's (profile,people,company, etc...).
The things that it can/would do are the following:
When the user enters a name that is registered in LinkedIn, he gets the following
*Name, Company, Email
*List of LinkedIn messages that are waiting for reply
The same process goes on everytime the user adds a profile, I'm planning to use the Profile API of LinkedIn to get the Name, Company and Email but I can't find a working example to be my basis.
As for the 2nd one I still don't know how to get the LinkedIn messages.
Here's my Layout and expected result.
How can I achieved this? Opinions and Suggestions are highly appreciated tnx
This is far to broad a question for me to invest the necessary time in to figure the answers (multiple) for you, but do let me give you some hints. First of all, from my experience with the linkedin API not all the data you wish to access is available (do double check this though, I used the API quite awhile back and stuff might have changed in the meantime). As this data is not available through the API the only alternative would be to somehow bypass the cross domain policy, which in conclusion would require the user to install a chrome extension/firefox plugin which will function as a proxy for your application or even 'better', make you entire application a browser plugin based web app. Not that I am a fan of those whatsoever but if you application is meant in any way whatsoever as a linkedin (dedicated) plugin (probably as part of a greater service you're developing) then it might make most sense.
The whole system you are describing is very long winded and requires a large amount of development time. Alot of the data is not accessible directly or indirectly too. You cannot get email address's out from the API as a security feature (bots could just harvest emails for marketing campaigns).
First of all, you will need to make an application that allows for oAuth2 connections with the linkedin API service. People will log onto your website, click to join their linkedin account with your website and your website will receive back an access token to do the calls.
You will then need to build the queries which will access the data you require. The linkedin API documentation (http://developer.linkedin.com/) isn't greatly indepth but it gives you a good understand and points you where you need to go. There are also a couple of pre-done php API's around such as https://code.google.com/p/simple-linkedinphp/.
I have worked with many API's from twitters, facebooks and LinkedIn's and they all require a lot of back-end work to make sure that they are secure and get the correct data.
It would take me hours to go through exactly how to do it and has taken me many hours to get a solid implementation in place and working with all the different calls available.
If you have minimal coding knowledge, it would be best to go to an external company with a large amount of resources and knowledge in the field who can do it for you. Otherwise it may take many months to get a working prototype.