We are trying to use Pushwoosh deep linking feature in our android application built with cordova.We are unable to build application after configuring pushwoosh deeplink.Please check error image when we build alt text

Below is the code we used

import android.os.Bundle;
import org.apache.cordova.*;
import android.content.Intent;
import android.net.Uri;
import android.R;
import android.view.View;
import android.widget.Toast;
import android.app.Activity;

public class Reval2 extends CordovaActivity
{
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.deep_link);
        setTitle("Deep link activity");

        Intent intent = getIntent();
        String action = intent.getAction();
        Uri data = intent.getData();

        if (action == Intent.ACTION_VIEW)
        {
            openUrl(data);
        }
    }

    private void openUrl(Uri uri) 
    {
        String promoId = uri.getQueryParameter("id");
        Toast.makeText(getApplicationContext(), promoId, Toast.LENGTH_LONG).show();
    }
}
asked 14 Apr '16, 11:45
venkatesh_revalsys's gravatar image

venkatesh_re...
112

Hello,

Could you please try this plugin for Deep Links handling in Cordova?

https://github.com/nordnet/cordova-universal-links-plugin

Pushwoosh deep links are compatible with this plugin.

permanent link
answered 04 May '16, 07:53
Max%20Kuzakov's gravatar image

Max Kuzakov
4165

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×446
×326
×190

question asked: 14 Apr '16, 11:45

question was seen: 777 times

last updated: 04 May '16, 07:53