Configures PubNub in the application run block