Overview

Configuring a Twitter Feed for an application allows you to set Pushwoosh to send push notifications to your app subscribers based on the following Twitter updates:

  • Hashtags;
  • Tweets & replies mentioning a user;
  • User’s tweets;
  • Tweets that contain multiple hashtags.

Pushwoosh pulls the latest tweet that matches the chosen criterion every 30 minutes and sends it as a push notification to all subscribers of your app.

When a users opens such push, you can set it to perform one of the following:

  • Just launch your application;
  • Open the tweet in the default browser of the device (using the https:// scheme);
  • Open the tweet in the Twitter app, if it’s installed on the device (using the twitter:// scheme).

Configuration

1. Go to Twitter Application Management website, and click “Create New App”.

Screen_Shot_2014-10-29_at_18_58_12

2. Fill in all required fields, and click “Create your Twitter Application” in the bottom of the page.

Screen_Shot_2014-10-29_at_19_00_02

3. Go to Keys and Access Tokens section, and click the “Create my access token” button in the very bottom of the page.

Screen Shot 2014-10-29 at 19.00.34 copy

4. You will need to specify the following keys in Pushwoosh app’s Twitter API settings:

  1. Consumer Key (API Key)
  2. Consumer Secret (API Secret)
  3. Access Token
  4. Access Token Secret

Extraordinary_App___Twitter_Application_Management

5. Paste Twitter API keys above to the Twitter API settings of your application in Pushwoosh, and save credentials.

Pushwoosh___Applications___Pushwoosh_Demo_App___Twitter_Feeds

6. Click Add Twitter Feed, and specify the Search Type and hastags or Twitter usernames you’d like Pushwoosh to look for in Twitter.

Search types:

  • # – tweets that contain a hashtag you specify;
  • @ – tweets that contain tweets and replies with the Twitter username you specify;
  • from: – tweets from a specified Twitter username;
  • Custom: – here you can specify multiple hashtags and usernames, and Pushwoosh will fire out those tweets that have one of these in it.

Pushwoosh___Applications___Pushwoosh_Demo_App___Twitter_Feeds

That’s it!