applicationContext remains "null" after using the custom url scheme to launch the app

Hello

I am currently working on a DPS application for a customer who wishes to use its own authentication system.

The client system is implemented so that they send the valid token to a URI with a custom method.

By setting the same pattern custom in my app DPS constructor, I can get the app from the login window.

What is described in the library of DPS & Api store 2.32 documentation, I understand that

" adobeDPS.configurationService.applicationContext must contain several variables associated to how the viewer was started or enabled:" ","this class represents the context under which the application is launched '


However, in my application when I try to see what contains the applicationContext, the object is always 'null '. It doesn't matter if I started the application by clicking on its icon or if it was launched using the custom uri scheme.


Is this a bug or am I missing something here? I really need this token.

Hello

After being stuck for a while trying to work with the url of my client for usage, I finally tested it with a modified version and have found the cause of the problem.

Work of first information provided by a colleague who was apparently not detailed enough for the customer asked me to use a url of the form App. scheme://auth/#token=...

It turns out that this kind of url can start or bring the app to the front, but applicationContext remains empty.

My tests using a url in the same form as you suggested (eg. app. scheme://v1/slot/library) can trigger the app or transmit data.

The documentation available in the SDK library & shop and article on how to use a custom template is very vague on what formats link actually works, and how we can vary with it.

A breakdown of official links to pieces, that the parties do and what items can be modified (for example ' / appstate') within the API documentation would be a great help for developers, I think.

Kind regards

Lorin

Tags: Digital Publishing Suite

Similar Questions

  • Save the custom URL scheme

    Hello!

    Is it possible to save a custom url scheme so that the system will launch my application when the user clicks on a link in the form "customscheme://idontcareaboutthefqdn/"?

    I know you can record a complete domain name by using HttpFilterRegistry, but I really want to react to a plan.

    P.S.: As always, I forgot to include the most important information...
    BB 6.0.0 API

    THX

    A few quick answers:

    (1) ignore, memory shows just a nodule not RIM started

    (2) interesting

    (3) care

    Now, I have a theory here.  I think you are trying to add the template registry etc until your application has actually started.

    If you look at this statement:

    PatternRepository.addPattern (ApplicationDescriptor.currentApplicationDescriptor (), "^ regime:-/-/ \\S*",)

    This is handled in your main() and main is no NOT part of your application - it is used to start your application.  (in fact it becomes part of your Application, but it's out of reach for the moment). So what makes ApplicationDescriptor.currentApplicationDescriptor () actually refers to?  A null descriptor, perhaps?

    I would try to reworjk that so as the record of the model becomes an integral part of your Application, so that ApplicationDescriptor.currentApplicationDescriptor (done) actually refers to the application you want.  Something along these lines - do 'with it ':

        public static void main(String[] args) {
            MyApp theApp = new MyApp (args);
            theApp.enterEventDispatcher();
        }
    
        public MyApp(String [] args) {
            this.invokeLater(new Runnable() {
                public void run() {
                    // In here.....
                }
            });
        }
    

    Note, this is just a theory, I have not tested this.

  • Background layer unlocks and becomes the normal "no flat" layer after using the crop tool in PS CC 2015.1 (a different behavior for older versions of PS)

    Hi all

    I found that it is more difficult to explain than I thought

    I don't like the new behavior in the latest version of Photoshop (CC 2015.1) regarding the way in which the background layers automatically unlock and convert to regular layers after using the crop tool. It's completely different to how things worked in previous versions, where a background layer remained in locked state flattened after using the crop tool.

    I get a LOT of images and this change has added an extra step to each image that I harvest, because I flatten the layers after cropping before saving the image. I looked through the preferences but cannot find a way to change this new behavior. Am I missing something?

    Thanks in advance for your help

    See if checking Delete the cropped Pixels in the tool options makes a difference.

  • Acrobat reader crashes after using the send a file feature

    I use 32 bit Windows 7 with all updates installed and Adobe Reader 11.0.11. After using the files of a PDF acrobat reader email feature send it crashes. The window is not frozen, but when I click on the X to close the document, nothing happens. I see the button push, but the window remains open. File-> exit does not work either. I can't open another PDF until I use taks Manager to close the Adobe Reader software.

    I tried to uninstall and reinstall drive, I created a new Windows user profile nothing helps. This happens on any PDF file I have open and click send a file.

    Disable protected mode solved the problem.

  • When you use a custom URL to preview Live, Chrome says that it cannot connect

    When you use a custom URL to preview Live, Chrome says it can't connect and Adobe Code declares that the browser has navigated away from the project.

    I'm trying so he can use the same port every time, so I can code on Localhost using the Facebook API.

    See you soon

    Hello BeamJinn,

    The port on the local host to the live preview changes all the time?

    If you specify a URL of Base Live Preview, so you need a webserver running on this address and port.

    For example:

    If you are running an Apache Server on port 8080, you must enter http://localhost: 8080 as the base URL. If you now work on your files in the folder of your installation of Apache document root, you should be fine and the live preview should work as expected.

    HTH,

    Ingo

  • I can't use the App Store after installing iOS 9.3.1

    I can't use the App Store or iCloud, after I installed the iOS 9.3.1.

    Force restart your iPhone...

    Press and hold the Home and Sleep/Wake buttons for at least ten seconds, until you see the Apple logo.

    Then try the App store or iCloud.

  • Does not start after using the recovery Toshiba Tecra M5 - disk

    After using the restore on my Tecra M5 CD, the computer cannot even start!

    What to do in this situation?

    Hi jbdoktor,

    Does that mean exactly?
    Now, what happens if you start the computer?

    Sorry, but without this information it is difficult to help you. Maybe you should try the recovery again disk

  • Should I update all the files from the Toshiba site after using the recovery CD

    I just used my recovery CD and update the Windows Update System.

    The question is: should I update all files in the files on this site download section as well?

    Usually after using the Toshiba Recovery CD everything should works and works correctly
    To my knowledge from time to time Toshiba has released new version of some tools or drivers. For example the BT stack will be developed all the time.
    But I think that if you have any problems with your system and peripherals, then you don't need t to update anything.
    Small is my opinion...

  • My Aspire one 753 does not connect to WIFI after using the Recovery Manager.

    After using the recovery on my Aspire one 753 inbuild Manager my phone doesn't conect to wireless internet. I think the problem has something to do with the drivers, but I'm not sure. need help ASAP

    I used the live usb of ubuntu when I discovered that my network card was acutally one of Intel wifi card. https://downloadcenter.intel.com/Detail_Desc.aspx?DwnldID=24217&lang=eng&ProdId=3316. Thank you very much for your support on the issue

  • XP unbootable after using the recovery disk, but Linux will be

    I have a laptop Toshiba Satellite L25-S1216. I had some bad virus, so I used the TOSHIBA Windows XP Recovery and Applications/drivers DVD provided with the computer when I bought it. I had used this once recovery DVDs or two before without problem, the last time was about 1 year ago. The recovery process seems to be okay: he seemed to format the disk and copy the files from the DVD to the hard drive. He copied about 5 600 MB hard disk for about 10 minutes and 40 seconds.

    But the computer does not boot from the hard drive after using the recovery DVD. I tried the process several times and it does not start in Windows XP on the hard drive. I checked the settings in the BIOs to make sure he can start, but it does not start in Windows XP on the hard drive. All I get is a white screen with a horizontal blinking cursor, nothing else, no error message, nothing.

    Then I got a copy of Linux (Fedora 14 live) on a CD and started on the computer from the CD R - W, DVD R drive. Then I loaded Fedora 14 hard disk. , I can boot into Linux (Fedora 14) of the fine to hard drive. In fact I use Linux to write this e-mail now. I also see the files that have been copied from the DVD recovery Windows XP on the hard drive, when I'm on Linux.

    Does someone has an idea what could be the problem? The only difference between now and the last time I used the recovery about DVDs a year, is that I had to replace it internal CD R - W, DVD R drive, as a mechanical part was broken. I replaced it with the same exact model (TS-L462) who was in the computer when I got it is new.

    Thank you

    B.

    Not sure how a restore xp cd may give you the option to start the recovery console.

    With a regular xp, recovery cd / repair console is launched all simply by selecting the 'r' on the configuration screen.  Subsequently, the recovery console opens and takes you to the drive prompt.

    In any case, what I suggest is to execute commands to drive at the command prompt that could make the drive bootable again.

    the commands are:

    Chkdsk /r

    Fixboot

    bootcfg /rebuild

    FIXMBR

    Normally, fixmbr running on a laptop is not recommended because it disables the hidden partition that contains the files for recovery.  Then re-enable it manually, is not easy. But since you have your on dvd, then you are lucky.

  • is it possible to save the Office XP for multiple monitors and restore after using the laptop in mobile mode?

    Is it possible to save the Office XP for multiple monitors and restore after using the laptop in mobile mode?

    Hi Kenelms,

    You can follow this link & check if it helps.

    HOW to: Set up hardware profiles for laptop computers in Windows XP

    Hope the helps of information.

    Please post back and we do know.

  • Stupid question CS6. How can I get rid of my experience after using the quick selection tool?

    Stupid question CS6. How can I get rid of my experience after using the quick selection tool?

    The best way would be to make sure that your layer is not a background layer: click the lock icon in this case. Then click the icon at the bottom of the layer panel layer mask. This will create a mask that you can refine and not be destructive.

  • Prepaid subscription for one year, but may not use the apps a month later after the purchase

    It's the customer service very frustrated that I saw, and I don't know why, it's very difficult for them to solve the problem. It has been a few days and I still can't use applications. I bought the prepaid for a year last month 28/04/2016, but started last week, he highlighted when I open apps, renew your subscription. My account on the website became creative Cloud free membership and no order history. I tired to support several times online content and they have always said that we have escalated your case anyone of higher level and the dedicated team who will contact you back or it will be fixed in a few hours, or tell me to wait another 24 hours, but so far, no contact me back and I still can't use the app I paid. I really need apps for work and they offer no other option that I can use apps while they solve the problem. It seems that I caused the problem, not of failure of their system and they don't really care the user problem.  Since the case need to the person of level greater than resolve, why I can't just s talk to a greater person directly?

    Case # 0218718387

    Hello

    Please see 'Renew your membership' message when you start an Adobe Creative Cloud application

    Hope that helps!

    Kind regards

    Sheena

  • I just make the payment for the license, after using the month trial. and when I want to use the programs and said that I must pay. and received e-mail confirmation of payment, that is not what I do

    I just make the payment for the license, after using the month trial. and when I want to use the programs and said that I must pay. and received e-mail confirmation of payment, that is not what I do


    Please see the links below.

    Also, make sure you use the right adobe ID to log in.

    Hope this will help you.

    Kind regards

    Hervé Khare

  • Acrobat CC - lost Scripture I posted after using the fill & sign. Help, please...

    Acrobat CC - lost Scripture I posted after using the fill & sign. Help, please... It happened after I merged the two files...

    Hi mannys14196422,

    This problem has been resolved in the last update. Go help--> Check for Updates.

    Please let us know if you still face the question.

    Kind regards

    Sandeep

Maybe you are looking for

  • How to read the MCC with DASYlab v9 usb2416

    I just bought the 24-bit USB-2416 of Mastec in New Zealand.  They said he was "totally supported" by dasylab.  But I can't go past go. I have used with success of dasylab to connect through various Fieldpoint modules.  Now I need to use this USB-2416

  • Erroneous lines appearing on XY graph after execution

    After the first time I start my VI, a false line is drawn between the first and the last point on the graph XY. It will become a permanent part of the plot until the reboot of the vi. I tried to create a property node with a value of 0 for the chart

  • MFP HP laserjet printing 1536dnf keeps

    Hi Admin, I currently work as a level entry COMPUTER Support, and I have a problem with the HP laserjet 1536dnf MFP that I can't give the time to understand why. Here's what I have: System: WXP Pro SP2 v2002 Material: MFP HP laserjet 1536dnf Device M

  • ASA5505 crossed

    I have an ASA5505 version 9.0 (3).  I want to pin hair traffic destined to the internet for my VPN clients.  Customers come in the same interface they need to get out to the Internet.  I've seen the same-security-traffic allow the intra-interface com

  • Is the host character included with a subscription to creative cloud?

    The icon "Ch" is not listed as a downloadable application on my computer?