Ionic 2 – how to open special page when tap on push notification?

Report
Question

Please briefly explain why you feel this question should be reported .

Report Cancel

I know that I can pass data in payload, but how to realize an opening special page when tap on push notificaton?

solved 0
1 Answer 93 views 0

Answer ( 1 )

    0
    January 12, 2017 at 4:30 am

    Please briefly explain why you feel this answer should be reported .

    Report Cancel

    You can use DeepLinker of ionic2, it is similar as route of angular2. In app module, you can set it like:

    imports: [
    IonicModule.forRoot(MyApp, {}, {
    links: [
    { component: SomeDetailPage, name: 'SomeDetail', segment: 'some/detail/:id' }
    ]
    })
    ]

    Best answer

Leave an answer

Browse

What is the capital of Egypt ? ( Cairo )

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>