• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by fiercewaffle · Jul 24, 2011 at 09:33 AM · iosiphonepluginnative

Native Alert on iOS (plugin)

Hello, I have been trying to create a plugin with XCode and build it into a DLL or whatever is better with XCode inorder to create a native alert. I need help with how to exactly create the plugins(Example : File > New Project > Whatever) as well as a little snippet of code that will allow me to call the function like this displayAlert("alertTitle", "alertText");

Thank you in advance, I really appreciate your help.

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image DeveshPandey · Apr 15, 2015 at 05:09 AM 0
Share

Hi Guys, You can use plugin to show native alert in your unity app/game.

http://u3d.as/content/devesh-pandey/native-alert/czB

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by kayy · Jul 25, 2011 at 09:11 AM

I did it sometime ago and started with the excellent blog entry An Experiment with iPhone Native UI and Unity 3 Pro by Gregg Martin. He provides a running demo for downloading so you can inspect the code. Furtheron I bookmarked a forum thread Unity plugin to handle loading native Cocoa UI's with ease.

When I started integrating m own iOS lib, the most annoying thing was parameter transfer and I ended up in supplying int (=> int*), string (=>const char*), ... because even to get a struct transported to the other end seems to be tricky.

Comment
Add comment · Show 6 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image fiercewaffle · Jul 25, 2011 at 09:18 AM 0
Share

Thats the thing.....Ive been trying for a few days now, my best results were...well nothing. Any way you can help me over TeamViewer or via e-mail. $$anonymous$$ine is fiercemodz@gmail.com I'd like to call it like this in unity displayAlert("Title", "$$anonymous$$essage"); But Im having trouble. All I've got for reference is the Prime31 gyroscope plugin.

avatar image kayy · Jul 25, 2011 at 09:44 AM 0
Share

To break it down, you should start with the demo project http://clevermartian.com/blog/wp-content/uploads/2010/08/iPhoneNativeUIExperiment.zip (zip file). Next, what exactly is the error? What is the debugger showing for Title variable?

avatar image alphakanal · Feb 01, 2013 at 01:01 PM 0
Share

hi! just read this and try to find the blog entry by Gregg $$anonymous$$artin you mentioned. But it seems this link is dead, is there a chance to get this entry somehow ?

avatar image kayy · Feb 01, 2013 at 01:19 PM 0
Share

Well it disappeared on the mentioned web site. There are some copies around or you can look it up in the famous internet archive wayback machine :-): http://web.archive.org/web/20120706195310/http://clevermartian.com/blog/?p=59

avatar image alphakanal · Feb 01, 2013 at 01:25 PM 0
Share

thank you very much! :-)

Show more comments

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Docs say managed-to-unmanaged calls are very slow on iOS. Why? Will it be fixed? 0 Answers

Creating a native photo picker screen on iOS 2 Answers

Low-level native plugin on iOS 1 Answer

Have to "Replace" iOS project every build because of Linker Errors 0 Answers

Native GUI-Style on IOS 2 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges